ecs-app

ianrodrigues/ecs-app/aws

Terraform Module HCL AWS ⏱ stale 1y 10mo

Install

module "ecs-app" {
source = "ianrodrigues/ecs-app/aws"
version = "0.2.2"
}
⭐ Source on GitHub 📦 Registry page

README

AWS Elastic Container Service (ECS) Cluster for Application Terraform Module Usage Elastic Container Service (ECS) Cluster only: ``tf module "my_app" { source = "ianrodrigues/ecs-app/aws" name = "my-app" environ = "beta" capacity_providers = ["FARGATE", "FARGATE_SPOT"] tags = { "terraform" = "true" } } ` Elastic Container Service (ECS) Cluster and Application Load Balancer (ALB): `tf module "my_app" { source = "ianrodrigues/ecs-app/aws" name = "my-app" environ = "beta" capacity_providers = ["FARGATE", "FARGATE_SPOT"] create_load_balancer = true vpc_id = "vpc-abcde012" public_subnet_ids = ["subnet-abcde012", "subnet-bcde012a"] tags = { "terraform" = "true" } } ` Requirements | Name | Version | |------|---------| | terraform | ~> 0.13 | | aws | ~> 2.54 | | random | ~> 2.3 | Providers | Name

Inputs (9)

NameTypeDescriptionDefault
namestringName of the application. It will be used to name the resources of this module. required
environstringEnvironment of the application. It will be used to name the resources of this mo required
vpc_idstring(Optional) The VPC ID. It is required if "create_load_balancer" is "true".""
public_subnet_idslist(string)(Optional) A list of Public Subnet IDs. It is required if "create_load_balancer"[]
tagsmap(string)(Optional) Key-value map of resource tags.{}
create_load_balancerbool(Optional) Whether to create an AWS ALB (Application Load Balancer) as part of ttrue
capacity_providerslist(string)(Optional) Key-value map of resource tags.[ "FARGATE", "FARGATE_SPOT" ]
capacity_provider_strategieslist(object({ capacity_pro(Optional) A list of capacity provider strategies.[]
enable_container_insightsbool(Optional) Whether to enable AWS ECS Container Insights.true

Outputs (4)

this_cluster — Name of the ECS cluster.
this_app_security_group_id — ID of the application Security Group.
this_lb_arn — ARN of the AWS ALB (Application Load Balancer).
this_lb_dns — DNS name of the AWS ALB (Application Load Balancer).

Resources (2)

aws_ecs_clusterrandom_string

Topics & Tags

ecsterraformcluster

Details

FrameworkTerraform Module
LanguageHCL
Version0.2.2
Cloud AWS
★ Stars5
Forks2
Total downloads6.0k
Inputs9
Outputs4
Resources2
Examples2
LicenseMIT
Namespaceianrodrigues
Updated