I have a script that creates a new instance from a snapshot, adding it to my security group, setting the master password and setting it to be publicly available
At each stage of the process I use: aws rds wait db-instance-available --db-instance-identifier MY_IDENTIFIER
The final part of the script needs to connect to the server and run a sql script against the data, but at this point it fails with:
ERROR 1045 (28000): Access denied for user '[email protected]' (using password: YES)
I know that the connection string is correct as (some time later), I am able to use it and connect without issue!
I read the "Troubleshooting for Amazon RDS" guide and can confirm that I have not missed anything, and besides, the fact that it does connect after some delay proves I have the correct settings.
The document points out that the state is set to 'creating' and then set to 'available' when each action is complete - I expect my wait statements to wait until this point.
I wonder if after being 'available' it then initiates a further change? Has anyone experienced this?