Created
June 7, 2019 07:54
-
-
Save Th0masStorm/9f0805f41260255a70e8f94bfbbabcdc to your computer and use it in GitHub Desktop.
deploy_td_and_service.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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