Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. aws ecs register-task-definition --profile YOUR_PROFILE \
  2. --region YOUR_REGION \
  3. --cli-input-json file://taskDefinition.json
  4. aws ecs create-service --profile YOUR_PROFILE \
  5. --region YOUR_REGION \
  6. --cluster mycluster \
  7. --launch-type FARGATE \
  8. --task-definition YOUR_TASK_DEF \
  9. --desired-count 1 \
  10. --platform-version LATEST \
  11. --network-configuration "awsvpcConfiguration={subnets=[YOUR_SUBNETID1, YOUR_SUBNETID2],securityGroups=[YOUR_SG],assignPublicIp=ENABLED}" \
  12. --service-name app
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement