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

Underlying aws command does not respect aws:profile from pulumi config #65

Open
sarink opened this issue Nov 20, 2024 · 0 comments
Open
Labels
kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team

Comments

@sarink
Copy link

sarink commented Nov 20, 2024

What happened?

When running pulumi up and using an aws:config some-org/user from Pulumi.stackname.yml, all commands work fine, except for the synced folder command, which returns

An error occurred (InvalidAccessKeyId) when calling the ListObjectsV2 operation: The AWS Access Key Id you provided does not exist in our records.

Although the access key is in fact valid, and the profile does exist in ~/.aws/credentials the aws s3 ... command that this library uses does not seem to correctly pick up the right profile to use.

Simply renaming the line [some-org/user] in ~/.aws/credentials to [default] fixes the issue.

If you work on multiple projects and/or stacks, this can be very annoying.

Example

Don't have an example, but the above description should allow you to reproduce the error.

Output of pulumi about

Version      3.121.0
Go Version   go1.22.4
Go Compiler  gc

Plugins
KIND      NAME    VERSION
language  nodejs  unknown

Host     
OS       darwin
Version  15.0.1
Arch     arm64

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).

@sarink sarink added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team
Projects
None yet
Development

No branches or pull requests

1 participant