ecs-lb-web-service

ianrodrigues/ecs-lb-web-service/aws

Terraform Module HCL AWS
Install
module "ecs-lb-web-service" {
source = "ianrodrigues/ecs-lb-web-service/aws"
version = "0.3.1"
}
plain text: /constructs/tfmod-ianrodrigues-ecs-lb-web-service-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

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

Inputs (22)
NameTypeDescriptionDefault
load_balancer_rule_prioritynumber(Optional) The priority for the rule between 1 and 50000. Leaving it unset will required
environstringEnvironment of the application. It will be used to name the resources of this mo required
namestringName of the service. It will be used to name the resources of this module. required
vpc_idstringThe VPC ID. required
load_balancer_arnstringThe ARN of the load balancer associated with service. required
container_portnumberThe port number on the container that is bound to the user-specified or automati required
container_imagestringThe image used to start a container. required
clusterstringARN of an ECS cluster. required
appstringName of the application. required
security_group_idslist(string)A list of security groups associated with the task or service. required
load_balancer_rule_pathstring(Optional) A path to match against the request URL."/"
desired_countnumber(Optional) The number of instances of the task definition to place and keep runn2
tagsmap(string)(Optional) Key-value map of resource tags.{}
memorynumber(Optional) The amount (in MiB) of memory used by the task.512
private_subnet_idslist(string)(Optional) A list of Private Subnet IDs. It is required to defined either "priva[]
load_balancer_stickiness_enabledbool(Optional) Whether to enabled target group cookie stickiness.true
container_extra_secretslist(object({ name = Extra secrets to pass to the container.[]
logs_retention_in_daysnumber(Optional) Specifies the number of days you want to retain log events in the spe14
container_extra_environmentlist(object({ name = striExtra environment variables to pass to a container.[]
cpunumber(Optional) The number of cpu units used by the task.256
public_subnet_idslist(string)(Optional) A list of Public Subnet IDs. It is required to defined either "privat[]
load_balancer_stickiness_durationnumber(Optional) The time period, in seconds, during which requests from a client shou86400
Outputs (1)
this_tags — Key-value map of resource tags.
Resources (7)
aws_cloudwatch_log_groupaws_ecs_serviceaws_ecs_task_definitionaws_iam_policyaws_lb_listener_ruleaws_lb_target_grouprandom_string
Details
FrameworkTerraform Module
LanguageHCL
Version0.3.1
Cloud AWS
★ Stars1
Forks1
Total downloads6.0k
Inputs22
Outputs1
Resources7
Examples1
LicenseMIT
Namespaceianrodrigues
Updated