assetnote / ghostbuster

Eliminate dangling elastic IPs by performing analysis on your resources within all your AWS accounts.
GNU Affero General Public License v3.0
264 stars 35 forks source link

not picking up AWS environment variables #20

Open varunchandak opened 2 months ago

varunchandak commented 2 months ago

I have setup AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN and AWS_DEFAULT_REGION. But it is not picking up the credentials from the environment variables.

/tmp/ghostbuster master !1 ❯ ghostbuster scan aws                                                                                                                                                                                                                            
                                                             ▄▄▄▄▄▄▄▄
      ▄▄▄    ▀▀▄  ▄▀▀              ▄▄▄▀▀█  ▀▀▄▀    ▀█     ▄▄███▀▀▀█▄▀▀█▄
   ▄▀▀█▀█▀▀▄ █▄█  ██    ▄▀█▀▀▄    ███▄█▀█▀ ▄█▀█▀▀▀▀█▄   ▄▀▀▀▄▄▄ ▄▄▄▄▄▄▄▀█▄
   ██▀  ▀▄▄█ ▀██  ▀░   ██▀█▄▀█▀  ██░▀▄▄ ██  ▀ ▄█▄▀▀ ▀  ██▄█████ ██▄██▄▀▄▄██
  ▄▀█      ▀  ▄█▀▀█▄   █▄  ▀  ▀   █░▄▄▄  █    ██▀     █░█  ██  ▄▀█▀▀  █████
  ██░  ▄▄▄▄   ██▀ ██   ██    ██    ▀▀▀█▀     ▄▄██     █▄█  ██ ▄▀█▀   ▄█▀▄░█
  ██▀  ▀███  ▄▀░  ██    ▄█▄ ▄█   ▄▄    █     ██░█     ██▀  █▄█▀▀██▀▀▀█ ███
  ▀▄█▄▄▄░██▀ ▀█▀  ░█▀   ▄▀▄█▀▀   ▀█░▄▀██      ▄█ ▄    ░█▀▄▄█▀█  █▄    ██▀
 █  ▄▀█▀▀▄▄▄  ▄  █▄██   ▀  █▄   ▀ ▀█▄▄▀▀      ██ ▀     ▀░█▄█▀▀█ ██ ▄▄█▄▀
    ▀▄   ███  ▀  ▄▀▀█▄   ▄ ██▀     ▄           ▄         ▀▀▄█▀█████▄▄▀
    ▄▄    ░█     ▀▄▄▀▀  ▀▀  ▀       ▄                        ▀▀▀▀▀▀▀
    ▀▀    █▀     ▄ ▄▄▄▄▄▄▄  ▀▀▄      ▄█▀█▄▄▄ ▄█▀█▀▀█▀█ ▄▄▄▄██▀  █▀▀▀▀▄
     ▄   ██▄      ▄▀██▀▀█▀▀ ███  █▀█ ████▀▀▀ ▀▄ ███  ▀ ▄▀▀▀▀▀█  █░  ▀█
    ▄    ▀█       ▄ █▀▄▄██▀ ▀█▀  ▀██  ▀▀█▀▄     ░██   ▄▀██▀█   ▄███▀██
                  ▀ █▄▀▀█░▄ ██░   ██     ▀██▄   ░██▄  ▀▄██     █▄█▄▀▄▄
          ▀     ▄▄▀ ██  ██▄  ▀█▀▀▀█▄ █▀   ░█▀▄  ░█▄   █▀█▄██▀█ ███░ ▀█▀▄
          ▀     ██▄▄█▀▄▄█▄█ ▀ ▀█▄▀▄▀ ██▀▀█▄██▀  █▄ ▀   █▀▀▄▀▄▄  █▄░  ▀██▀
                ▄██▀▀▀▀▀▀█     ▄  ▄  ▀██▀▀▀▀ ▀  ▄ ▀     ▀   ▀▀ ▀ █▄█  ▀
                 ▀▀▀▀▀▀▀ ▄     ▄  ▀  █ ▀█▄ ▄ ▀  ▀               ▀▄▀
                                     ▄  ▀▀ ▀                      ▀
                                         ▀

Obtained 0 DNS A records so far.
Obtained 0 unique elastic IPs from AWS.
No takeovers detected! Nice work.