def save_aws_config
      env_key = ENV['AWS_ACCESS_KEY_ID']
      env_secret = ENV['AWS_SECRET_ACCESS_KEY']

      creds = {}
      creds['ACCESS_KEY_ID'] = @access_key_id unless @access_key_id == env_key
      creds['SECRET_ACCESS_KEY'] = @secret_access_key \
        unless @secret_access_key == env_secret

      save_config('aws', creds)
    end
def save_aws_config
      env_key = ENV['AWS_ACCESS_KEY_ID']
      env_secret = ENV['AWS_SECRET_ACCESS_KEY']

      creds = {}
      creds['ACCESS_KEY_ID'] = @access_key_id unless @access_key_id == env_key
      creds['SECRET_ACCESS_KEY'] = @secret_access_key \
        unless @secret_access_key == env_secret

      save_config('aws', creds)
    end
Saves AWS access credentials to aws.yml unless they are configured as
 environment variables.