Use Pulumi Crosswalk to deploy a basic load balanced ECS service
Pulumi is an infrastructure as code framework for software engineers. Instead of writing YAML to define your infrastructure you can use higher level SDK commands, in a familiar programming language, and Pulumi will create the necessary resources for you automatically.
How to use Pulumi infrastructure as code SDK to deploy a load balanced ECS service
Create new Elastic Container Service (ECS) task definition revision
About
This script demonstrates the use of a Bash here document to embed a task definition template in a deploy script. You can interpolate variable values from the bash script into the task definition template, and then pass the entire JSON structure to the aws ecs create-task-definition CLI command using the --cli-input-json flag.
A bash script example showing how to create a new revision of an ECS task definition, with variables for image URI, and other values.
Register ECS Anywhere Linux Capacity
💡 Tip: The easiest way to register external capacity with an ECS cluster is to use the Elastic Container Service web console, as it will automatically create an activation key and code, and prepopulate the commands with the right activation key for you.
💡 Tip: The easiest way to register external capacity with an ECS cluster is to use the Elastic Container Service web console, as it will automatically create an activation key and code, and prepopulate the commands with the right activation key for you.
Command line scripts for registering external Linux instances with an ECS Cluster
Register ECS Anywhere Windows Capacity
💡 Tip: The easiest way to register external capacity with an ECS cluster is to use the Elastic Container Service web console, as it will automatically create an activation key and code, and prepopulate the commands with the right activation key for you.
💡 Tip: The easiest way to register external capacity with an ECS cluster is to use the Elastic Container Service web console, as it will automatically create an activation key and code, and prepopulate the commands with the right activation key for you.
Command line scripts for registering external Windows instances with an ECS Cluster
Amazon Elastic Container Service February 2023 round up
Watch the February 2023 Amazon ECS roundup. This monthly segment discusses the latest announcements about Amazon Elastic Container Service.
This episode covered the following topics:
The latest news and announcements about Amazon Elastic Container Service, for the month of February 2023
Elastic Container Service (ECS) Blueprints for Terraform
Prerequisites
- You can use AWS Cloud9 which has all the prerequisites preinstalled and skip to Quick Start
- Mac (tested with OS version 12.+) and AWS Cloud9 Linux machines. We have not tested with Windows machines
- Terraform (tested version v1.2.5 on darwin_amd64)
- Git (tested version 2.27.0)
- AWS CLI
- AWS test account with administrator role access
- Configure the AWS credentials on your machine by running
aws configure if you have not already done so.
Quick Start
aws configure if you have not already done so.Fork the ECS blueprints repository on Github