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

Using deprecated for of AWS authentication #102

Open
flatherskevin opened this issue Mar 16, 2023 · 2 comments
Open

Using deprecated for of AWS authentication #102

flatherskevin opened this issue Mar 16, 2023 · 2 comments

Comments

@flatherskevin
Copy link

I am receiving the following errors when authenticating the sops provider. Using the Mozilla sops CLI works without issue, so it appears targeted to this provider.

Error: Failed to get the data key required to decrypt the SOPS file.

Error decrypting key: NoCredentialProviders: no valid
providers in chain. Deprecated.

This error appeared when relying on the credentials passed into the terraform init command. I tested both raw AWS credentials, as well as profiles, and both failed.

The only way to get it to work was forcing credentials with export AWS_PROFILE=my_profile

@bryan-rhm
Copy link

I have not get this error, could you share how does your .sops.yaml file looks like?

@carlpett
Copy link
Owner

We do exactly what the sops cli does, so I suspect the issue is how you pass it in via Terraform. Can you share more information?

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

3 participants