Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement