Skip to content

miquido/terraform-ecs-envoy

Repository files navigation

Miquido

terraform-ecs-envoy

Provide app mesh envoy container definition for ECS

Terraform Module

Usage

  module "ecs-alb-task-service-envoy-proxy" {
    source                            = "git::ssh://git@gitlab.com/miquido/terraform/terraform-ecs-envoy.git"
    appmesh-resource-arn              = ...
    awslogs-group                     = ...
    awslogs-region                    = ...
    app-ports                         = ...
    egress-ignored-ports              = ...
    container_name                    = ...
    aws_service_discovery_service_arn = ...
}

Makefile Targets

Available targets:

  help                                Help screen
  help/all                            Display help for all targets
  help/short                          This help short screen
  lint                                Lint Terraform code

Requirements

Name Version
terraform >= 0.13
aws ~> 3.0

Providers

No providers.

Modules

Name Source Version
ecs-proxy-container-definition git::https://github.com/cloudposse/terraform-aws-ecs-container-definition.git 0.58.1

Resources

No resources.

Inputs

Name Description Type Default Required
app-ports Coma separated app port numbers string n/a yes
appmesh-resource-arn arn of appmesh virual node string n/a yes
aws_service_discovery_service_arn arn of service discovery service string n/a yes
awslogs-group group of CloudWatch logs string n/a yes
awslogs-region region of CloudWatch logs string n/a yes
container_memory The amount of memory (in MiB) to allow the container to use. This is a hard limit, if the container attempts to exceed the container_memory, the container is killed. This field is optional for Fargate launch type and the total amount of container_memory of all containers in a task will need to be lower than the task memory value number null no
container_name Cloud map container name string n/a yes
egress-ignored-ports Coma separated egress ignored ports string n/a yes
ulimits Container ulimit settings. This is a list of maps, where each map should contain "name", "hardLimit" and "softLimit"
list(object({
name = string
hardLimit = number
softLimit = number
}))
null no

Outputs

Name Description
container_dependant n/a
json_map_encoded JSON string encoded container definitions for use with other terraform resources such as aws_ecs_task_definition
json_map_encoded_list JSON string encoded list of container definitions for use with other terraform resources such as aws_ecs_task_definition
json_map_object JSON map encoded container definition
proxy_configuration n/a
service_registries n/a

Developing

  1. Make changes in terraform files

  2. Regenerate documentation

    bash <(git archive --remote=git@gitlab.com:miquido/terraform/terraform-readme-update.git master update.sh | tar -xO)
  3. Run lint

    make lint
    

Copyright

Copyright © 2017-2022 Miquido

Contributors

Marek Mościchowski
Marek Mościchowski

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published