[Enhancement]: aws_db_instance should surface event errors #41037
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/rds
Issues and PRs that pertain to the rds service.
Description
When you create an
aws_db_instance
some configurations can fail to apply due to invalid configuration. When this happens Terraform does not surface these errors to the user. The user sees a successful apply and then a perpetual diff with the unapplied configuration.When RDS fails to apply these configurations it does not return an error status, instead it reports these errors in the
events
.With the below Terraform configuration run the following steps:
terraform apply
terraform plan
If you look at the engine events you can see the error
aws rds describe-events --source-identifier $INSTANCE_ID --source-type db-instance --event-categories failure
Affected Resource(s) and/or Data Source(s)
aws_db_instance
Potential Terraform Configuration
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: