Skip to content

Commit ae21ef7

Browse files
author
Patrick Robinson
authored
Merge pull request #44 from envato/add-region-option
Add option to pass region
2 parents 4f8957f + f914c16 commit ae21ef7

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ The minimum and maximum percentage of tasks that should be maintained during a d
9595

9696
Example: `"0/100"`
9797

98+
### `region` (optional)
99+
100+
The region we deploy the ECS Service to.
101+
98102
## AWS Roles
99103

100104
At a minimum this plugin requires the following AWS permissions to be granted to the agent running this step:

hooks/command

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ load_balancer_name=${BUILDKITE_PLUGIN_ECS_DEPLOY_LOAD_BALANCER_NAME:-""}
3939
target_container=${BUILDKITE_PLUGIN_ECS_DEPLOY_TARGET_CONTAINER_NAME:-""}
4040
target_port=${BUILDKITE_PLUGIN_ECS_DEPLOY_TARGET_CONTAINER_PORT:-""}
4141
execution_role=${BUILDKITE_PLUGIN_ECS_DEPLOY_EXECUTION_ROLE:-""}
42+
region=${BUILDKITE_PLUGIN_ECS_DEPLOY_REGION:-""}
43+
44+
if [[ $region != "" ]]; then
45+
AWS_DEFAULT_REGION=${region}
46+
fi
4247

4348
# Resolve any runtime environment variables it has
4449
target_group=$(eval "echo $target_group")

0 commit comments

Comments
 (0)