Complete the command to list S3 buckets using a specific AWS profile.
aws s3 ls --profile [1]The --profile option specifies which AWS profile to use for the command. Here, dev-account is the profile name.
Complete the AWS CLI command to configure a new profile named 'prod-account'.
aws configure --profile [1]The --profile option followed by prod-account creates or updates that profile's configuration.
Fix the error in the command to assume a role using a profile.
aws sts assume-role --role-arn [1] --role-session-name MySession --profile dev-accountThe --role-arn must specify an IAM role ARN, not a bucket, user, or EC2 instance ARN.
Fill both blanks to set environment variables for AWS CLI to use the 'test-account' profile.
export AWS_PROFILE=[1] aws s3 ls --profile [2]
Setting AWS_PROFILE environment variable and using the same profile in the command ensures consistent profile usage.
Fill all three blanks to create a named profile with access key and region.
[[1]] aws_access_key_id=[2] region=[3]
The profile name goes in brackets, followed by the access key and region settings.