env-aws-params icon indicating copy to clipboard operation
env-aws-params copied to clipboard

ERROR: NoCredentialProviders: no valid providers in chain. Deprecated.

Open lokasandeep opened this issue 1 year ago • 1 comments

Hello i am using env-aws-params to read all parameters from system manager with a prefix. This is working fine in Amazon Linux 2. but when i include the same in AML 2023, i could not read read the parameters and getting the error

ERROR: NoCredentialProviders: no valid providers in chain. Deprecated. For verbose messaging see aws.Config.CredentialsChainVerboseErrors

are there any changes needed for AML 2023 ?. trying to find what i need to pass to overcome this error, but could not find anything.

Here is my command

/usr/bin/env -i /usr/local/bin/env-aws-params --aws-region $EC2_REGION
--prefix $1
--pristine
--silent /usr/bin/printenv >> $environmentFile

lokasandeep avatar Dec 08 '23 21:12 lokasandeep

This looks like the same error from the Go SDK: https://serverfault.com/questions/973933/how-to-fix-nocredentialproviders-no-valid-providers-in-chain-deprecated

gmr avatar Jan 09 '24 23:01 gmr