I am creating the RDS via AWS CLI using
create-db-instance
RDS is getting created but I want to wait until the RDS comes to "available" state so that I can execute the remaining part of the script. I am not sure how can I achieve that.
Sign in to the AWS Management Console and open the Amazon RDS console at https://console.aws.amazon.com/rds/ . In the navigation pane, choose Databases. The Databases page appears with the list of DB instances. For each DB instance , the status value is displayed.
It takes 15-20 minutes for a database instance creation. Once the new RDS instance is available, open the instance properties. Note down the endpoint from connectivity and security. Connect the instance using the endpoint.
To create a DB instanceIn the upper-right corner of the Amazon RDS console, choose the AWS Region in which you want to create the DB instance. In the navigation pane, choose Databases. Choose Create database. In Choose a database creation method, select Standard Create.
You can also view all actives and disconnected local and remote session by using RDMS (Server Manager > Remote Desktop Services) > Select your Session Collection > right pane "CONNECTIONS".
Use the wait
ers as provided by the AWS SDK in its CLI. Specifically, you want to wait until RDS DB instance becomes available. Look at db-instance-available
.
aws rds wait \
db-instance-available \
--db-instance-identifier "your-rds-instnace-id"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With