Skip to content

Commit 63fb8b8

Browse files
author
Yuriy Bezsonov
committed
WIP: refactoring
1 parent 0f18ac9 commit 63fb8b8

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • infrastructure/scripts/deploy

infrastructure/scripts/deploy/ecs.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,8 @@ EKS_VPC_CIDR=$(aws ec2 describe-vpcs \
128128
--vpc-ids "$VPC_ID" \
129129
--query "Vpcs[0].CidrBlock" --output text)
130130

131-
LAMBDA_SG_ID=$(aws cloudformation describe-stacks --stack-name unicornstore-stack --query "Stacks[0].Outputs[?ExportName=='LambdaSecurityGroupId'].OutputValue" --output text)
132-
133-
ECS_SG_ID=$(aws ec2 describe-security-groups --filters "Name=group-name,Values=unicorn-store-spring-ecs-sg" --query "SecurityGroups[0].GroupId" --output text)
131+
LAMBDA_SG_ID=$(aws ec2 describe-security-groups --filters "Name=vpc-id,Values='$VPC_ID'" \
132+
--query 'SecurityGroups[?GroupName==`'unicornstore-thread-dump-lambda-sg'`].GroupId' --output text)
134133

135134
sleep 1
136135

0 commit comments

Comments
 (0)