Enable S3Import and S3Export featues while Aurora cluster is being provisioned
Actual Behavior
Terraform is unbale to enable both features and an error is reported. One of the features can be enabled, but an error is reported when Terraform attempts to enable the second one. This can be in any order. If S3Import is enabled first, Terraform reports an error when trying to enable S3Export. This only occurs when the trying to enable the features while a cluster is being provisioned. It can be enabled afterwards with no issues.
Relevant Error/Panic Output Snippet
Error: waiting for RDS DB Cluster (test4) IAM Role Association to create: unexpected state 'INVALID', wanted target 'ACTIVE'. last error: %!s(<nil>)
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.2.9
AWS Provider Version
5.42.0
Affected Resource(s)
aws_rds_cluster
Expected Behavior
Enable S3Import and S3Export featues while Aurora cluster is being provisioned
Actual Behavior
Terraform is unbale to enable both features and an error is reported. One of the features can be enabled, but an error is reported when Terraform attempts to enable the second one. This can be in any order. If S3Import is enabled first, Terraform reports an error when trying to enable S3Export. This only occurs when the trying to enable the features while a cluster is being provisioned. It can be enabled afterwards with no issues.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
terraform-aws-dba-aurora-postgresql.zip
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None