Amazon ECS Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 52: Line 52:
[[Amazon_ECS_Concepts#Task_Role|Task Role]]:
[[Amazon_ECS_Concepts#Task_Role|Task Role]]:


{{Warn|Only roles that have the Amazon EC2 Container Service Task Role trust relationship are shown here. If you create a new Task Role, make sure it has this trust relationship.}}
{{Warn|Only roles that have the "Amazon EC2 Container Service Task Role" trust relationship are shown here. If you create a new Task Role, make sure it has this trust relationship.}}


{{Internal|AWS_Security_Operations#Create_an_IAM_Role|Create an IAM Role}}
{{Internal|AWS_Security_Operations#Create_an_IAM_Role|Create an IAM Role}}

Revision as of 05:25, 6 February 2019

External

Internal

Overview

Create a Cluster

Create a Cluster - Reference

Amazon ECS -> Clusters -> Create Cluster

Networking only (Fargate)

Cluster Name

Networking:

Create VPC

CIDR block 10.0.0.0/16

Subnet 1: 10.0.0.0/16

Delete Subnet 2.

It will create:

  • ECS cluster
  • CloudFormation Stack
  • VPC
  • Subnet 1
  • Subnet 1 route table association
  • VPC Availability Zones
  • Internet gateway
  • Route table
  • Amazon EC2 route
  • Virtual private gateway attachment

Create a Task Definition

Create a Task Definition - Reference

Amazon ECS -> Task Definitions -> Create a New Task Definition -> FARGATE -> Next Step

Task Definition Name: playground-themyscira

Requires Compatibilities: FARGATE

Task Role:


Only roles that have the "Amazon EC2 Container Service Task Role" trust relationship are shown here. If you create a new Task Role, make sure it has this trust relationship.

Create an IAM Role
Role name: playground-themyscira-task-role
Role description: The task role for the playground-themyscira task definition.
Trusted entities AWS service: ecs.amazonaws.com



AmazonECSTaskExecutionRolePolicy

Create a Service

Must create at least a Task Definition first.

Clusters -> <Cluster Name> -> Services tab -> Create:

Launch Type: FARGATE

Task Definition: Family playground-