Closed hashibot closed 6 years ago
Anyone likely to pick up and research/attempt to reproduce this issue is likely to run into #2 as well. If the aws_db_instance resource referenced in the MySQL provider doesn't already exist in the Terraform state when the MySQL provider is configured, the run is likely to fail. (At least, it did for me in 0.9.3 / 0.9.9 - haven't retested with 0.9.11, the latest 0.9.x release as of this writing...)
You may only give these rights: https://aws.amazon.com/de/premiumsupport/knowledge-center/duplicate-master-user-mysql/
This issue was originally opened by @kshcherban as hashicorp/terraform#10899. It was migrated here as part of the provider split. The original body of the issue is below.
Descripion
mysql provider fails to create users in AWS MySQL RDS 5.7 Connectivity between RDS and local machine is fine, I can connect using mysql client. Seems like bug in terraform's mysql code.
Logs from RDS
Steps to Reproduce
Terraform Version
Terraform v0.8.1
Affected Resource
Terraform Configuration Files
Debug Output
Error applying plan:
Nothing different in debug log.
Expected Behavior
User should be created
Actual Behavior
User was not created