Skip to content

Commit 0ffa2b2

Browse files
committed
Added security groups variable to FARGATE task
1 parent 61d6b9d commit 0ffa2b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/run-task.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if [[ "$SERVICE_TYPE" == "FARGATE" ]]; then
3737
TASK_ID=$(aws ecs run-task \
3838
--cluster $CLUSTER_NAME \
3939
--task-definition $TASK_ARN \
40-
--network-configuration "awsvpcConfiguration={subnets=[${SUBNETS}]}" \
40+
--network-configuration "awsvpcConfiguration={subnets=[${SUBNETS}],securityGroups=[${SECURITY_GROUPS}]}" \
4141
--launch-type FARGATE \
4242
--query="tasks[0].taskArn" \
4343
--output=text)

0 commit comments

Comments
 (0)