Creates a Fargate service in a private subnet with a public load balancer.
terraform init
terraform plan
terraform apply
Note that this example may create resources which cost money. Run terraform destroy
to destroy those resources.
Name | Version |
---|---|
terraform | >= 1.3 |
aws | >= 5.32 |
null | >= 3.2 |
random | >= 3.4 |
Name | Version |
---|---|
aws | >= 5.32 |
null | >= 3.2 |
random | >= 3.4 |
Name | Source | Version |
---|---|---|
alb | terraform-aws-modules/alb/aws | ~> 9.0 |
service | ../../ | n/a |
vpc | terraform-aws-modules/vpc/aws | ~> 5.0 |
Name | Type |
---|---|
aws_ecs_cluster.this | resource |
aws_security_group.egress_all | resource |
null_resource.initial_image | resource |
random_pet.this | resource |
aws_availability_zones.available | data source |
aws_caller_identity.current | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
region | n/a | string |
"eu-west-1" |
no |
Name | Description |
---|---|
endpoint | n/a |