AWS CLI — Multiple profiles
How to take advantage of multiple profiles feature! (with examples and tips) Why and How? The cloud environment should have multiple accounts, according to AWS best practice “Well-Architected Framework.” Based on the security requirements, each account has different groups, roles, and users. In such a configuration, you may have multiple profiles to use on a daily basis, either between different accounts or even within the same account, with each profile having different permissions or roles. Setting up Multiple Profiles Here is how you can add multiple profiles on AWS CLI To create multiple AWS CLI profiles, you can use the aws configure command. This command will prompt you for information such as your AWS Access Key ID and Secret Access Key, as well as the default region and output format for your profile. To create a new profile, you can use the — profile option, followed by the name of your profile. For example, if you wanted to create a profile named “dev”, you could use the foll...