[Bug]: resource/aws_security_group_rule: security_group_rule_id attribute was removed #28110
Labels
bug
Addresses a defect in current functionality.
service/vpc
Issues and PRs that pertain to the vpc service.
Terraform Core Version
latest
AWS Provider Version
Affected Resource(s)
aws_security_group_rule
Expected Behavior
resource has
security_group_rule_id
attributeActual Behavior
The
security_group_rule_id
attribute was removed from the resource for AWS provider versions >= 4.40.0. I get that a single rule resource can map to many EC2 sg rules; however, all of those rules should be related to the samesecurity_group_id
. Therefore, I would expect that attribute to be set whether the relationship between sg and sgrules is 1-to-1 or 1-to-nTerraform Configuration Files
https://github.com/aidanmelen/terraform-aws-security-group-v2/tree/v2.1.1/examples/basic
Steps to Reproduce
create any
aws_security_group_rule
with the AWS provider versions>= 4.40.0
and it will not have thesecurity_group_rule_id
attributeDebug Output
No response
Panic Output
No response
Important Factoids
It looks like @ewbankkit mistakenly removed this attribute with #27828. I am not sure what was suppose to be worked on in that issue because this does not seem to be AWS provider versions
=< 4.39.0
, at least not that I understand.As a result, my tests are failing: https://github.com/aidanmelen/terraform-aws-security-group-v2/blob/v2.1.1/test/terraform_basic_test.log#L252-L307
References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: