Friday, February 3, 2023

Updating aws config/credentials


-- 

// Here, aws comes from installing awscli.

# aws configure --profile=<your_profile_name>


This will update the files at ~/.aws/config   and ~/.aws/credentials 

You can inspect the contents of the above files to verify.
--

You can simply run below to set credentials

# export AWS_PROFILE=<your_profile_name>

--

Verify above configuration using 

# aws iam get-user

--