/delete-ami

Multiple Deregister an Amazon Machine Image (AMI) and delete its corresponding root device snapshot with file

Primary LanguageShellMIT LicenseMIT

How To use : 
-----------

1 .  Configure profile & credentials in .aws
2 .  Scan ami-id with file unused-ami.sh
3 .  Configure parameters in delete-ami.sh with region and profile

Configure profile & credentials
===============================
<http://docs.aws.amazon.com/cli/latest/topic/config-vars.html>

* Create folder .aws 
    mkdir ~/.aws;
* Create file config
    vim ~/.aws/config

ACCESS KEY ID & SECRET ACCESS KEY
=================================
<https://aws.amazon.com/developers/access-keys/>
<http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-set-up.html>

paste this 

    [profile NAME]
    output = json
    region = <REGION>
    aws_access_key_id = <ACCESS KEY ID>
    aws_secret_access_key = <SECRET ACCESS KEY> 

* Configure Parameters

    find variable and change with your profile NAME

    profile=''
    profile='profile NAME'