ecs-lb-web-service
ianrodrigues/ecs-lb-web-service/aws
ECS Load Balanced Web Service Injected Environment Variables The module injects three environment variables into the tasks: ECS_APP_NAME - Contains the name of the application as set on the app property. ECS_ENVIRON_NAME - Contains the name of the environment as set on the environ property. * ECS_SERVICE_NAME - Contains the name of the environment as set on the name property. Usage ``tf module "my_app" { source = "ianrodrigues/ecs-app/aws" name = "my-app" environ = "beta" vpc_id = "vpc-093bee94" public_subnet_ids = ["subnet-002b5423", "subnet-0e0dbd33"] tags = { "terraform" = "true" } } module "nginx_backed_service" { source = "ianrodrigues/ecs-lb-web-service/aws" depends_on = [module.my_app] name = "nginx" app = "my-app" environ = "beta" cpu = 256 memory = 512 vpc_id = "vpc-093bee94" publ
| Name | Type | Description | Default |
|---|---|---|---|
| load_balancer_rule_priority | number | (Optional) The priority for the rule between 1 and 50000. Leaving it unset will | required |
| environ | string | Environment of the application. It will be used to name the resources of this mo | required |
| name | string | Name of the service. It will be used to name the resources of this module. | required |
| vpc_id | string | The VPC ID. | required |
| load_balancer_arn | string | The ARN of the load balancer associated with service. | required |
| container_port | number | The port number on the container that is bound to the user-specified or automati | required |
| container_image | string | The image used to start a container. | required |
| cluster | string | ARN of an ECS cluster. | required |
| app | string | Name of the application. | required |
| security_group_ids | list(string) | A list of security groups associated with the task or service. | required |
| load_balancer_rule_path | string | (Optional) A path to match against the request URL. | "/" |
| desired_count | number | (Optional) The number of instances of the task definition to place and keep runn | 2 |
| tags | map(string) | (Optional) Key-value map of resource tags. | {} |
| memory | number | (Optional) The amount (in MiB) of memory used by the task. | 512 |
| private_subnet_ids | list(string) | (Optional) A list of Private Subnet IDs. It is required to defined either "priva | [] |
| load_balancer_stickiness_enabled | bool | (Optional) Whether to enabled target group cookie stickiness. | true |
| container_extra_secrets | list(object({ name = | Extra secrets to pass to the container. | [] |
| logs_retention_in_days | number | (Optional) Specifies the number of days you want to retain log events in the spe | 14 |
| container_extra_environment | list(object({ name = stri | Extra environment variables to pass to a container. | [] |
| cpu | number | (Optional) The number of cpu units used by the task. | 256 |
| public_subnet_ids | list(string) | (Optional) A list of Public Subnet IDs. It is required to defined either "privat | [] |
| load_balancer_stickiness_duration | number | (Optional) The time period, in seconds, during which requests from a client shou | 86400 |
this_tags — Key-value map of resource tags.Azure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,