AWS ECS on Fargate を試してみる。
nginx サーバを雑に起動してみる。
デプロイする。
aws cloudformation deploy \
--region ap-northeast-1 \
--template-file cfn-template.yml \
--stack-name try-aws-ecs-on-fargate \
--parameter-overrides VpcId=vpc-XXXXXXXX SubnetIds=subnet-XXXXXXXXXXXXXXXXX,subnet-XXXXXXXXXXXXXXXXX \
--tags Name=try-aws-ecs-on-fargate \
--no-fail-on-empty-changeset
後始末。
aws cloudformation delete-stack \
--region ap-northeast-1 \
--stack-name try-aws-ecs-on-fargate
aws cloudformation wait stack-delete-complete \
--region ap-northeast-1 \
--stack-name try-aws-ecs-on-fargate