terraform-provider-sops icon indicating copy to clipboard operation
terraform-provider-sops copied to clipboard

Using deprecated for of AWS authentication

Open flatherskevin opened this issue 2 years ago • 2 comments

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

flatherskevin avatar Mar 16 '23 14:03 flatherskevin

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

bryan-rhm avatar May 04 '23 21:05 bryan-rhm

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?

carlpett avatar Jun 30 '23 07:06 carlpett