cn-terraform / terraform-aws-ecs-fargate

AWS ECS Fargate Terraform Module
https://registry.terraform.io/modules/cn-terraform/ecs-fargate
Apache License 2.0
87 stars 57 forks source link

Clarification : Availability zone setting #12

Closed advissor closed 4 years ago

advissor commented 4 years ago

Hi, I notice that in new version of a module 2.0.17, you don't have availability_zones

Does module derive availability zones from the private subnet? And how lb_enable_cross_zone_load_balancing corresponds with this?

Trying to migrate from 2.0.9 version to 2.0.17

BRs, Vlad

jnonino commented 4 years ago

Hi, this modules creates a Load Balancer, an ECS Task Definition and an ECS Service. For that purpose you only need passing subnets IDs which I divide into private and public. You will need to consider availability zones when you create the subnets, for example using this networking module.

lb_enable_cross_zone_load_balancing indicates to the load balancer that it can redirect traffic to targets on any availability zone. If the subnets you provide are in different availability zones you'll need to enable this.

Hope that helps!!

advissor commented 4 years ago

Hi @jnonino thanks a lot! This answers my question