Skip to content

Commit eae1098

Browse files
committed
[Add] - add function to give commandline instructions to delete RDS
1 parent b6ea54e commit eae1098

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

services/rds.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,3 +237,20 @@ aws_rds_list_db_cluster_snapshots() {
237237
"
238238

239239
}
240+
241+
aws_rds_rm_db_instance_instruction() {
242+
aws_rds_db_instance_name=$1
243+
244+
aws_commandline_logging " \
245+
aws rds modify-db-instance \
246+
--db-instance-identifier ${aws_rds_db_instance_name:="\$aws_rds_db_instance_name"} \
247+
--apply-immediately \
248+
--no-deletion-protection
249+
"
250+
251+
aws_commandline_logging " \
252+
aws rds delete-db-instance \
253+
--db-instance-identifier ${aws_rds_db_instance_name:="\$aws_rds_db_instance_name"} \
254+
--skip-final-snapshot
255+
"
256+
}

0 commit comments

Comments
 (0)