Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Th0masStorm/9f0805f41260255a70e8f94bfbbabcdc to your computer and use it in GitHub Desktop.
Save Th0masStorm/9f0805f41260255a70e8f94bfbbabcdc to your computer and use it in GitHub Desktop.
deploy_td_and_service.sh
aws ecs register-task-definition --profile YOUR_PROFILE \
--region YOUR_REGION \
--cli-input-json file://taskDefinition.json
aws ecs create-service --profile YOUR_PROFILE \
--region YOUR_REGION \
--cluster mycluster \
--launch-type FARGATE \
--task-definition YOUR_TASK_DEF \
--desired-count 1 \
--platform-version LATEST \
--network-configuration "awsvpcConfiguration={subnets=[YOUR_SUBNETID1, YOUR_SUBNETID2],securityGroups=[YOUR_SG],assignPublicIp=ENABLED}" \
--service-name app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment