Skip to content

Latest commit

 

History

History
75 lines (55 loc) · 3.16 KB

README.md

File metadata and controls

75 lines (55 loc) · 3.16 KB

ECS Cluster Complete

Configuration in this directory creates:

  • ECS cluster using Fargate (on-demand and spot) capacity providers
  • Example ECS service that utilizes
    • AWS Firelens using FluentBit sidecar container definition
    • Service connect configuration
    • Load balancer target group attachment
    • Security group for access to the example service

Usage

To run this example you need to execute:

$ terraform init
$ terraform plan
$ terraform apply

Note that this example may create resources which will incur monetary charges on your AWS bill. Run terraform destroy when you no longer need these resources.

Requirements

Name Version
terraform >= 1.0
aws >= 4.66.1

Providers

Name Version
aws >= 4.66.1

Modules

Name Source Version
alb terraform-aws-modules/alb/aws ~> 9.0
ecs ../../ n/a
ecs_cluster_disabled ../../modules/cluster n/a
ecs_disabled ../../ n/a
service_disabled ../../modules/service n/a
vpc terraform-aws-modules/vpc/aws ~> 5.0

Resources

Name Type
aws_service_discovery_http_namespace.this resource
aws_availability_zones.available data source
aws_ssm_parameter.fluentbit data source

Inputs

No inputs.

Outputs

Name Description
cluster_arn ARN that identifies the cluster
cluster_autoscaling_capacity_providers Map of capacity providers created and their attributes
cluster_capacity_providers Map of cluster capacity providers attributes
cluster_id ID that identifies the cluster
cluster_name Name that identifies the cluster
services Map of services created and their attributes

License

Apache-2.0 Licensed. See LICENSE.