cloudposse / terraform-aws-security-group

Terraform module to provision an AWS Security Group
https://cloudposse.com/accelerate
Apache License 2.0
36 stars 35 forks source link

aws_security_group_rule create_before_destroy triggers bug in provider #34

Closed Nuru closed 2 years ago

Nuru commented 2 years ago

Describe the Bug

This module creates Security Group Rules using create_before_destroy = true. This causes Terraform to fail when adding or removing CIDRs to an existing rule where an existing CIDR is retained, due to an issue with the Terraform AWS provider.

See https://github.com/hashicorp/terraform-provider-aws/issues/25173 for details and examples.

See also https://github.com/hashicorp/terraform/issues/31316 for proposed solutions.