1) DEMOGO-ECS の「サービス」タブの「作成」をクリックします。
2) ステップ1:サービスの設定
- Task Definition
- Family: dogsdef
- Revision: 1 (latest)
- Service name:
dogs
- Number of tasks: 2
- Minimum healty percent: 100
- Maximum percent: 200
- Deployment circuit breaker: Disabled
4. Deployments - デフォルト
5. Tags - デフォルト
6. Next step を選択します。
7. ネットワーク設定
- Cluster VPC: 10.0.0.0/16 (DemoGoECSVPC)
- Subnets: PrivateSubnet1(10.0.3.0/24) と PrivateSubnet2(10.0.4.0/24) を選びます。
- Security Group: 自動で生成されます。
- Auto-assgin public IP: DISABLED
1. Load balancer type: Application Load Balancer を選びます。
2. Container name: dogs:80:80 を選択して Add to load balancer を押します。
1. ロードバランサーにコンテナを追加する
- Production Listener port: 80:HTTP
- Target group name: create new を選び
dogs
と入力します。
- path pattern: /dogs*, Evaluation order: 2
- Health check path: /dogs/
1. Service discovery: チェックを外します
1. Set Auto Scaling: Do not adjust the service’s desired count を選択します。
10. レビューをした後に dogs ECS Service を作成します。