Skip to main content

Amazon ECS

Overviewโ€‹

Amazon ECS is a powerful container orchestration service that simplifies deploying, managing, and scaling containerized applications. It supports the lifecycle management of containers, including deployment, recycling, high availability, and version management. Upwind integrates with Amazon ECS to enhance monitoring and management capabilities for your containerized applications.

How the components connectโ€‹

This diagram shows how the Upwind components and their supporting AWS resources connect when you install with the Runtime Terraform Module. For every resource the module creates, see Resources the module creates.

How the aws-ecs-runtime module's resources connectinvokeswrites tokenreads client credspulls images and injects both secretslogsgRPC :8082TLS gRPC :8444all three resolve the cluster manager through Cloud Map: upwind-<cluster>.privateEventBridge rulerate(1 hour)Credentials LambdaUWRegCred-<cluster>Registry secretupwind-registry-*Client credentialsupwind-sensor-*Task execution roleupwind-task-execution-*reads both secretsSensordaemon per instanceScannerdaemon per instanceTracerin your workloadsCluster manager:8082 ยท :8444Log group1 day retention
  • An EventBridge rule runs the registry credentials Lambda every hour. The Lambda reads your client credentials, exchanges them for a registry token, and writes the token to the registry secret. Terraform also invokes the Lambda once during apply so the first image pull works.
  • The task execution role reads both secrets. ECS uses it to pull the Upwind images and to pass the credentials to the containers.
  • The cluster manager exposes two ports. The sensor and scanner reach it over TLS gRPC on port 8444. The tracer reaches it over gRPC on port 8082. All three find it through the same private AWS Cloud Map name, upwind-<cluster>.private, or through an internal load balancer's DNS name when you turn that on.
  • The tracer runs inside your Fargate workload containers. The upwind-tracer container you add to the task only delivers the tracer binary, which your application container runs as its entrypoint. The module creates no resources for the tracer. It returns the tracer settings as the tracer output. See Tracer.
  • All Upwind containers send logs to one CloudWatch log group.

Installationโ€‹

To deploy Upwind components on Amazon ECS, choose the compute option that best suits your needs and follow the detailed installation guides: