![Forrest logo](/images/logo.png)
aws-rds:tldr:7451e
The command "aws rds delete-db-instance" is used to delete a relational database instance in Amazon RDS (Relational Database Service). It entirely removes the specified database instance, including all associated resources like storage, backups, and automated snapshots.
Here's an explanation of the different options used in the command:
-
--db-instance-identifier: It specifies the unique identifier for the database instance that needs to be deleted. The ${instance_identifier} is a placeholder for the actual identifier value, and you need to replace it with the real identifier.
-
--final-db-snapshot-identifier: This option is used to specify the name of the final DB snapshot to be created before deleting the database instance. The ${snapshot_identifier} is a placeholder for the desired snapshot identifier, which you need to provide.
-
--delete-automated-backups: This flag indicates whether the automated backups of the database instance should also be deleted. If this flag is specified, all automated backups associated with the instance will be permanently removed.
By executing this command with the appropriate values for the instance identifier, snapshot identifier, and the delete-automated-backups flag, you can delete a specific RDS database instance while also deciding whether to create a final snapshot and remove automated backups.