github cloudposse/terraform-aws-ecs-alb-service-task 0.62.1
v0.62.1

latest releases: v0.76.0, v0, 0.75.0...
2 years ago

🚀 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

  • #118 (used == at first, later changed to >=)
  • #137 (uses >=, was closed in favor of #118)
  • #145 (uses ==, was closed in favor of #155)

Don't miss a new terraform-aws-ecs-alb-service-task release

NewReleases is sending notifications on new releases.