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
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.
Name | Version |
---|---|
terraform | >= 1.0 |
aws | >= 4.66.1 |
Name | Version |
---|---|
aws | >= 4.66.1 |
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 |
Name | Type |
---|---|
aws_service_discovery_http_namespace.this | resource |
aws_availability_zones.available | data source |
aws_ssm_parameter.fluentbit | data source |
No inputs.
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 |
Apache-2.0 Licensed. See LICENSE.