Closed nikpivkin closed 4 months ago
Voting for Prioritization
Volunteering to Work on This Issue
Hey @nikpivkin 👋 Thank you for taking the time to raise this! In this case, this is expected behavior that we note in the resource documentation:
Although
cidr_blocks
,ipv6_cidr_blocks
,prefix_list_ids
, andsecurity_groups
are all marked as optional, you must provide one of them in order to configure the destination of the traffic.
With that in mind, I'm going to close this issue, but please do let us know if you experience any other unexpected behavior!
[!WARNING] This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them.
Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.
@justinretzolk Thank you. But why doesn't an error occur if I don't specify any of these arguments and the resource is just quietly created?
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Terraform Core Version
1.8.5
AWS Provider Version
5.57.0
Affected Resource(s)
aws_security_group
Expected Behavior
The resource is successfully created if one of the following arguments is not specified for the rule egress: cidr_blocks, ipv6_cidr_blocks, prefix_list_ids, or security_groups.
Actual Behavior
A resource should not be created.
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
Creating a resource in CloudFormation without specifying a list of CIDR blocks for the Egress rule returns an error.
Example config:
Response:
References
No response
Would you like to implement a fix?
None