Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Our demo breaks as AWS mandates using region #147

Open
mrsabath opened this issue Oct 24, 2022 · 1 comment
Open

Our demo breaks as AWS mandates using region #147

mrsabath opened this issue Oct 24, 2022 · 1 comment

Comments

@mrsabath
Copy link
Member

When executing the SPIRE demo that retrieves the file from AWS S3 by passing JWT identity token, we currently get the following error:

$ AWS_ROLE_ARN=arn:aws:iam::581274392:role/oidc-federation-gto-test1-role AWS_WEB_IDENTITY_TOKEN_FILE=token.jwt aws s3 cp s3://mars-spire/mars.txt top-secret.txt

<botocore.awsrequest.AWSRequest object at 0x7f173f626c10>

Non-zero exit code: 255
@mrsabath
Copy link
Member Author

The problem is that AWS API now mandate the region variable. The quick fix is to include the following:

AWS_DEFAULT_REGION=us-east-1 AWS_ROLE_ARN=arn:aws:iam::581274392:role/oidc-federation-gto-test1-role AWS_WEB_IDENTITY_TOKEN_FILE=token.jwt aws s3 cp s3://mars-spire/mars.txt top-secret.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant