terraform-aws-ecs-cluster icon indicating copy to clipboard operation
terraform-aws-ecs-cluster copied to clipboard

vpc_security_group_ids should not be set if network_interfaces.security_groups is set

Open gpkc opened this issue 1 year ago • 0 comments

https://github.com/hashicorp/terraform-provider-aws/issues/14440

This is causing issues when trying to update the ASG:

Error: updating Auto Scaling Group (...): InvalidQueryParameter: Invalid launch template: When a network interface is provided, the security groups must be a part of it.

Inspecting the UI, when using Terraform like this, the Security Group appears twice in the ASG, and this is an invalid state. When removing vpc_security_group_ids and leaving just the one under network_interfaces in the launch template, then everything seems to work fine.

I'm not sure exactly how it should look like if local.public is true though.

gpkc avatar Mar 19 '24 11:03 gpkc