Amazon Elastic Container Service (ECS) is a fully managed container orchestration service that helps you to more efficiently deploy, manage, and scale containerized applications. It deeply integrates with the AWS environment to provide an easy-to-use solution for running container workloads in the cloud and on premises with advanced security features using Amazon ECS Anywhere.
Prerequisites
user has administrator access.
user has the IAM permissions to create a service role.
user with administrator access has manually created the task execution role so that it is available on the account to be used.
The security group you select when creating a service with your task definition must have port 80 (or the port defined in docker file) open for inbound traffic.
Steps
Step 1: Create the cluster
Step 2: Create a task definition
Step 3: Create the service
Step 4: View your service
Step 5: Clean up
*** Don't forget to delete the cluster to avoid extra billing
Deleting the cluster cleans up the associated resources that were created with the cluster, including Auto Scaling groups, VPCs, or load balancers.
29 янв 2024