env-aws-params
env-aws-params copied to clipboard
ERROR: NoCredentialProviders: no valid providers in chain. Deprecated.
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
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