tldr/pages/common/aws-rds.md

38 lines
1.2 KiB
Markdown
Raw Normal View History

2021-10-07 03:53:49 +01:00
# aws rds
> CLI for AWS Relational Database Service.
> Create and manage relational databases.
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/rds/index.html>.
- Display help for specific RDS subcommand:
2021-10-07 03:53:49 +01:00
`aws rds {{subcommand}} help`
- Stop instance:
`aws rds stop-db-instance --db-instance-identifier {{instance_identifier}}`
- Start instance:
`aws rds start-db-instance --db-instance-identifier {{instance_identifier}}`
- Modify an RDS instance:
`aws rds modify-db-instance --db-instance-identifier {{instance_identifier}} {{parameters}} --apply-immediately`
- Apply updates to an RDS instance:
`aws rds apply-pending-maintenance-action --resource-identifier {{database_arn}} --apply-action {{system-update}} --opt-in-type {{immediate}}`
- Change an instance identifier:
`aws rds modify-db-instance --db-instance-identifier {{old_instance_identifier}} --new-db-instance-identifier {{new_instance_identifier}}`
- Reboot an instance:
`aws rds reboot-db-instance --db-instance-identifier {{instance_identifier}}`
- Delete an instance:
`aws rds delete-db-instance --db-instance-identifier {{instance_identifier}} --final-db-snapshot-identifier {{snapshot_identifier}} --delete-automated-backups`