Open wizardfiction opened 2 years ago
@wizardfiction, thanks for filing this issue. We also noticed this recently when testing we tested this out on m1 machines, which looks to be what you are also using. We will look into this more to get this resolved. In theory, it should be able to use your configuration in ~/.aws/credentials
- just out of curiosity, did you happen to try setting the AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
environment variables to see if it would take those?
@sean1588 Yes, exporting the envvars does indeed work. This means we won't have issues in CI/CD (Github Actions runner), but I do like the convenience of testing things from my M1.
This package rocks btw 💪
thanks @wizardfiction! Glad it is working well for you otherwise!
Quick question for you... so only way I was able to repro the cred validation error you were seeing was by removing a default region from the ~/.aws/credentials
profile and also making sure AWS_REGION
env var was not set. When those values were set, I was able to run pulumi up
successfully using a profile configured in ~/.aws/credentials
. Do you happen to have either of these values set? It is possible some other issue may be going on and maybe the CLI is swallowing up that error and just printing the invalid creds message. I will continue to look into it.
@sean1588 I have region configured in my ~/.aws/config
file but not in my credentials file. I believe it is intended to go in the config file, as aws configure set region <REGION>
updates the config file.
Adding AWS_REGION
env var did not help.
@wizardfiction this was likely due to an issue with the pulumi cli and not the component itself. There have been some updates made there around these errors as others were also running into them when using other components as well. You can try again with the latest version of the pulumi CLI and see if that solves your issue.
What happened?
I am trying to use the new aws-static-website package in a new pulumi stack. When running
pulumi up
, I get the following error:My AWS credentials are configured at
~/.aws/credentials
.Steps to reproduce
Run
pulumi new
. Selectaws-typecript
.npm install @pulumi/aws-static-website
Update
index.ts
to the following:pulumi up
Expected Behavior
I expected
pulumi up
to create the resources required for my minimal static website.Actual Behavior
I was greeted with an error with AWS access keys:
Versions used
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).