Skip to content

Instantly share code, notes, and snippets.

@thejohnny
thejohnny / delete-ami
Created December 20, 2018 20:17 — forked from elasticdog/delete-ami
Deregister an Amazon Machine Image (AMI) and delete its corresponding root device snapshot
#!/usr/bin/env bash
#
# delete-ami
#
# A script to deregister an Amazon Machine Image (AMI) and
# delete its corresponding root device snapshot.
#
##### Functions