Created
September 3, 2020 04:50
-
-
Save takat0-h0rikosh1/7b40d2f51a8cc44843b6c77f7ac7ab5a to your computer and use it in GitHub Desktop.
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 create-service \ | |
--cluster claster_name \ | |
--service-name service_name \ | |
--task-definition task_def_name \ | |
--load-balancers "targetGroupArn=target_group_arn,containerName=container_name,containerPort=container_port" \ | |
--desired-count 1 \ | |
--launch-type FARGATE \ | |
--platform-version LATEST \ | |
--network-configuration "awsvpcConfiguration={subnets=[subnet-xxx,subnet-xxx,subnet-xxx],securityGroups=[sg-xxx,sg-xxx],assignPublicIp=DISABLED}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment