So it seems like the exclusion_by_resource_types and recording_strategy blocks don't get cleaned-up when removing them from the Terraform config.
Explicitly setting them to empty does show them in the diff, but the request still fails.
Resource definition:
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Terraform Core Version
1.9.4
AWS Provider Version
5.62.0
Affected Resource(s)
Expected Behavior
When a config recorder has been created with an
exclusion_by_resource_types
exclusion enabled it should be possible to remove the exclusions.Actual Behavior
Modifying the existing recorder fails with an
InvalidRecordingGroupException
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Create a config recorder with an exclusion
Modify the config recorder to include all types:
Run
terraform apply
The following changes are shown:Plan: 0 to add, 1 to change, 0 to destroy.
Do note that in step 3 there are 2 unchanged blocks. This is the state of the resource before the change:
So it seems like the
exclusion_by_resource_types
andrecording_strategy
blocks don't get cleaned-up when removing them from the Terraform config. Explicitly setting them to empty does show them in the diff, but the request still fails. Resource definition:Output:
Debug Output
tf.log
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No