🚀 Enhancements
Don't create IAM role for the service if there are no load balancers @ento (#156)
what
- #155 was meant/stated to fix #136, but the PR didn't actually change the line that was causing the issue
- This PR makes the necessary change to fix the issue, which is to change the conditional for determining whether to create an IAM role for the ECS service that this module provisions: don't create the role if
var.ecs_load_balancers
is empty; otherwise, create it
why
- The IAM role is assigned a policy that allows it to call load balancer APIs, which isn't necessary if no load balancing is needed
- Trying to attach the role to the ECS service anyways with network mode set to bridge results in an error as noted by #136
references
Previous PRs