ecs-fargate
aws-ia/ecs-fargate/aws
AWS ECS Fargate Module
Terraform AWS ECS Fargate Authors: David Wright (dwright@hashicorp.com) and Tony Vattahil (tonynv@amazon.com) To deploy the Terraform Amazon Fargate module, do the following: 1. Install Terraform. For instructions and a video tutorial, see Install Terraform. 2. Sign up and log into Terraform Cloud. (There is a free tier available.) 3. Configure Terraform Cloud API access. Run the following to generate a Terraform Cloud token from the command line interface: `` terraform login --For Mac/Linux export TERRAFORM_CONFIG="$HOME/.terraform.d/credentials.tfrc.json" --For Windows export TERRAFORM_CONFIG="$HOME/AppData/Roaming/terraform.d/credentials.tfrc.json" ` 4. Configure the AWS Command Line Interface (AWS CLI). For more information, see Configuring the AWS CLI. 5. If you don't have git install
| Name | Type | Description | Default |
|---|---|---|---|
| vpc_id | string | ECS VPC ID | required |
| region | string | the name of the region you wish to deploy into | "us-east-1" |
| name | string | Name given resources | "aws-ia" |
| container_memory | number | How much memory in megabytes to give the container | 512 |
| network_tag | string | Tags used to filter ecs subnets | "ecs-subnets" |
| image_url | string | the url of a docker image that contains the application process that will handle | "nginx" |
| lb_public_access | bool | Make LB accessable publicly | true |
| routing_priority | number | The priority for the routing rule added to the load balancer. This only applies | 1 |
| container_port | number | What port number the application inside the docker container is binding to | 80 |
| container_cpu | number | How much CPU to give the container. 1024 is 1 CPU | 256 |
| lb_path | string | A path on the public load balancer that this service should be connected to. Use | "*" |
| service_name | string | A name for the service | "nginx" |
| desired_count | number | How many copies of the service task to run | 2 |
| remote_cidr_blocks | list(any) | By default cidr_blocks are locked down. (Update to 0.0.0.0/0 if full public acce | [
"10.0.0.0/32"
] |
| name_prefix | string | Name Prefix | "fw" |
public_lb_dns_name — Public LB address to connect too