-
Notifications
You must be signed in to change notification settings - Fork 159
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
AWS_PROFILE not working, commands failing #1941
Comments
Sorry for the confusion here, I believe you want to use a different action in a previous step, like: https://github.com/aws-actions/configure-aws-credentials, rather than passing aws creds via the env of the pulumi action. |
@jkisk I think this is unrelated to Github Actions. On my laptop, I'm using
|
One recent change is that we've started pre-validating credentials up-front rather than waiting for a resource to fail to deploy. One workaround is to set |
This seems to be a duplicate of #1995 |
I believe this is fixed via #2004 and will go out into production with the new release this week |
What happened?
In pulumi-aws v5+, if the provider profile is specified by the config, it is now required to set the AWS_ACCESS_KEY and AWS_SECRET_KEY for that specific profile. Previously if there were no credentials, Terraform would fall back on the credentials found in the environment.
GH Issue
Terraform Provider Update
Given this, I am attempting to pass
AWS_PROFILE
as an env parameter to the actions as recommended here. However, this does not work and there is no way to relate the credentials to the was profile so Pulumi does not fail the command.Steps to reproduce
Expected Behavior
Actions can use the credentials set in the CI/CD process to the profile passed in the actions automatically. Command runs successfully.
Actual Behavior
Commands fail with the following error:
error configuring Terraform AWS Provider: failed to get shared config profile, my-profile
Versions used
@pulumi/aws 5.4.0
@pulumi/awsx 0.40.0
@pulumi/pulumi 3.32.1
@pulumi/random 4.6.0
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).
The text was updated successfully, but these errors were encountered: