Skip to content

Commit

Permalink
Merge pull request #107 from dxw/fix-dalmatian-rds-scripts
Browse files Browse the repository at this point in the history
Fix RDS scripts
  • Loading branch information
rjw1 authored Apr 29, 2022
2 parents 60f7d3d + b0e0f6e commit c77985e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bin/rds/create-database
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ then

ECS_INSTANCES=$(
aws ec2 describe-instances \
--filters "Name=vpc-id,Values=$RDS_VPC" "Name=instance-state-code,Values=16"
--filters "Name=vpc-id,Values=$RDS_VPC" "Name=instance-state-code,Values=16" Name=tag:Name,Values="$INFRASTRUCTURE_NAME-$ENVIRONMENT*"
)
ECS_INSTANCE_ID=$(
echo "$ECS_INSTANCES" \
Expand Down
2 changes: 1 addition & 1 deletion bin/rds/export-dump
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ then

ECS_INSTANCES=$(
aws ec2 describe-instances \
--filters "Name=vpc-id,Values=$RDS_VPC" "Name=instance-state-code,Values=16"
--filters "Name=vpc-id,Values=$RDS_VPC" "Name=instance-state-code,Values=16" Name=tag:Name,Values="$INFRASTRUCTURE_NAME-$ENVIRONMENT*"
)
ECS_INSTANCE_ID=$(
echo "$ECS_INSTANCES" \
Expand Down
4 changes: 2 additions & 2 deletions bin/rds/list-databases
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ echo "==> Finding ECS instance..."

ECS_INSTANCES=$(
aws ec2 describe-instances \
--filters "Name=vpc-id,Values=$RDS_VPC" "Name=instance-state-code,Values=16"
)
--filters "Name=vpc-id,Values=$RDS_VPC" "Name=instance-state-code,Values=16" Name=tag:Name,Values="$INFRASTRUCTURE_NAME-$ENVIRONMENT*")

ECS_INSTANCE_ID=$(
echo "$ECS_INSTANCES" \
| jq -r .Reservations[0].Instances[0].InstanceId
Expand Down
2 changes: 1 addition & 1 deletion bin/rds/shell
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ then

ECS_INSTANCES=$(
aws ec2 describe-instances \
--filters "Name=vpc-id,Values=$RDS_VPC" "Name=instance-state-code,Values=16"
--filters "Name=vpc-id,Values=$RDS_VPC" "Name=instance-state-code,Values=16" Name=tag:Name,Values="$INFRASTRUCTURE_NAME-$ENVIRONMENT*"
)
ECS_INSTANCE_ID=$(
echo "$ECS_INSTANCES" \
Expand Down

0 comments on commit c77985e

Please sign in to comment.