Posts

Showing posts with the label Which




Aws Set Which Profile to Use Aws Cli

Image
You can configure the AWS Command Line Interface AWS CLI to use an IAM role by defining a profile for the role in the awsconfig file. If you are new to AWS CLI you may read my previous article here. Aws Cli Zacks Blog On a related note to launch an EC2 instance from CLI refer to this. . The aws sts get-caller-identity command outputs three pieces of information including the ARN. If you run commands with --profile marketingadmin or specify it with the AWS_PROFILE environment variable the AWS CLI uses the. Using the role name ReadOnly Now you can finish the configuration of your profile by specifying the default output format the default AWS Region to send commands to and providing a name for the profile so you can reference this profile from among all those defined on the local computer. In such a case we need to configure AWS CLI with multiple users using profiles. You can find the Access Key ID and Secret. Switching Betw...