Removing the configuration.result_configuration.encryption_configuration block from the resource should call the UpdateWorkgroup API setting ResultConfigurationUpdates={RemoveEncryptionConfiguration=true}
Actual Behavior
Terraform seems to try to set the encryption configuration to empty values which is not allowes
Relevant Error/Panic Output Snippet
When removing the configuration.result_configuration.encryption_configuration block from the resource, terraform fails on the apply stage with the following error:
Error: updating Athena Workgroup (test): operation error Athena: UpdateWorkGroup, 1 validation error(s) found. - missing required field, UpdateWorkGroupInput.Configuration.ResultConfigurationUpdates.EncryptionConfiguration.EncryptionOption
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.7.4
AWS Provider Version
5.35.0
Affected Resource(s)
aws_athena_workgroup
Expected Behavior
Removing the configuration.result_configuration.encryption_configuration block from the resource should call the UpdateWorkgroup API setting ResultConfigurationUpdates={RemoveEncryptionConfiguration=true}
Actual Behavior
Terraform seems to try to set the encryption configuration to empty values which is not allowes
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
create an Athena workgroup with encryption
remove the configuration.result_configuration.encryption_configuration block, then apply the terraform plan
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No