Sha256: ce6317ddca36ca20afcb665f328fc00d9285a76fadbe41ef5c86121446635901
Contents?: true
Size: 556 Bytes
Versions: 1
Compression:
Stored size: 556 Bytes
Contents
require 'chef/knife/rds_base' class Chef class Knife class RdsInstanceDelete < Knife include Knife::RdsBase banner 'knife rds instance delete INSTANCE_NAME' def run assert_name_args_at_least!(1, "Database identifier required.") authenticate! confirm("Are you sure you want to delete #{db_instance_id}") rds.client.delete_db_instance({db_instance_identifier: db_instance_id, skip_final_snapshot: true}) end def db_instance_id name_args.first end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
knife-rds-0.0.1 | lib/chef/knife/rds_instance_delete.rb |