sparse-intern-71089
05/10/2023, 3:38 PMmillions-furniture-75402
05/10/2023, 4:22 PMaws --profile my-profile sts get-caller-identity
billowy-night-21439
05/11/2023, 8:07 AM$ aws --profile my-profile sts get-caller-identity
{
"UserId": "XXXXXXXXXXXXXXXX:botocore-session-1234567890",
"Account": "123456789012",
"Arn": "arn:aws:sts::123456789012:assumed-role/my-profile-role/botocore-session-1234567890"
}
yeah, returns what you'd expect, yet pulumi preview/up throws the 403 errorbillowy-night-21439
05/11/2023, 11:00 AMexport $(printf "AWS_ACCESS_KEY_ID=%s AWS_SECRET_ACCESS_KEY=%s AWS_SESSION_TOKEN=%s" \
$(aws sts assume-role \
--role-arn arn:aws:iam::123456789012:role/my-profile-role \
--role-session-name MySessionName \
--query "Credentials.[AccessKeyId,SecretAccessKey,SessionToken]" \
--output text))
running this before the pulumi cmd does workmillions-furniture-75402
05/11/2023, 12:05 PMbillowy-night-21439
05/11/2023, 12:06 PMmillions-furniture-75402
05/11/2023, 12:06 PMbillowy-night-21439
05/11/2023, 12:07 PMpulumi login <s3://my-pulumi-bucket?profile=my-profile>
this is the login cmd and it works finemillions-furniture-75402
05/11/2023, 12:08 PMPulumi.yaml
millions-furniture-75402
05/11/2023, 12:08 PM?region=us-east-1&awssdk=v2
millions-furniture-75402
05/11/2023, 12:09 PMpulumi whoami
billowy-night-21439
05/11/2023, 12:09 PMmillions-furniture-75402
05/11/2023, 12:10 PMmillions-furniture-75402
05/11/2023, 12:10 PMmfa_serial
is notbillowy-night-21439
05/11/2023, 12:13 PM[profile my-profile]
source_profile=default
role_arn = arn:aws:iam::123456789012:role/my-profile-role
output = json
region = ap-northeast-1
millions-furniture-75402
05/11/2023, 12:15 PMmillions-furniture-75402
05/11/2023, 12:16 PMsts_region
to your profilebillowy-night-21439
05/11/2023, 12:18 PMmillions-furniture-75402
05/11/2023, 12:19 PMmillions-furniture-75402
05/11/2023, 12:20 PMbillowy-night-21439
05/11/2023, 12:40 PM