• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

AWS_PROFILE

AWS Set Profile

November 7, 2021

If you find yourself using a named profile for every awscli command, you can set it temporarily.

Listing a bucket with a named profile.

aws s3 ls --profile=yourprofile

aws s3 ls --profile=yourprofile

If you set AWS_PROFILE, you can then list a bucket without a named profile.

export AWS_PROFILE=yourprofile
aws s3 ls

export AWS_PROFILE=yourprofile aws s3 ls

After you are done, you can reset it back to default.

export AWS_PROFILE=default

export AWS_PROFILE=default

Filed Under: Cloud Tagged With: aws, AWS_PROFILE, default, export, profile, s3, set

  • Home
  • About
  • Archives

Copyright © 2023