All  | SeriesTagsYearsAuthors

 

All Posts From (73 Total) Page 12 of 13

Inject configuration files in an Elastic Container Service (ECS) task definition

The following snippet shows how to do runtime file generation and injection in an ECS task definition.

It launches an NGINX reverse proxy server, directly from Amazon Elastic Container Registry Public. This default container does not do anything except show a simple “welcome to NGINX” message. However, we can use a command to generate the custom NGINX configuration at runtime, prior to launching the container. Because this command runs inside the container as it launches we can even use custom environment variables from the task definition.

How to add custom config files to your container at runtime, by using a command override in the ECS task definition

Basic container app with custom image build

About

This pattern shows how to setup an AWS Cloud Development Kit (CDK) application for building and deploying a container image. The container image will be deployed to serverless AWS Fargate capacity, managed by Amazon Elastic Container Service (ECS).

A Cloud Development Kit app showing how to automatically build and upload local code as a container image when launching your application in AWS Fargate

Public facing, load balanced website on EC2

About

This pattern shows how to setup an AWS Cloud Development Kit (CDK) application for building a container image and deploying it to EC2 capacity, fronted by an Application Load Balancer that serves as the ingress for the application. The container application will be managed by Amazon Elastic Container Service (ECS).

A Cloud Development Kit app showing advanced config for load balancing a public facing containerized application that is hosted on EC2 instances

Load balanced web service deployed using AWS Copilot

About

AWS Copilot is the official command line tool for Amazon ECS. It helps you to build your local container and deploy it as a serverless deployment hosted in AWS Fargate, and orchestrated by Amazon ECS

Instructions for how to deploy a container to AWS Fargate using Amazon Elastic Container Service (ECS) and AWS Copilot

A thumbnail image

Why should I use an orchestrator like Amazon ECS or Kubernetes?

If you work in software development for the cloud you have probably heard of infrastructure orchestrators such as Kubernetes, Amazon Elastic Container Service, or Hashicorp Nomad.

Does container orchestration make it easier to manage your application, or does it make it harder?

Uninstall ECS Anywhere

The following script removes the components of ECS Anywhere from a host. After running this you can reinstall ECS Anywhere back onto the host cleanly, and the host will have a new identity in SSM and in the ECS console.

A bash script that cleans up a host that was used as capacity for ECS Anywhere