You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not a big bug by any means, and it's easy to fix my local environment. However, a new user to AWS may find the bellow error (resulting from properly following the walkthrough) to be confusing and prevent use of the sample app. Documentation does not note an auth limitation for v2 sso.
Error
Attempting to run through the deployment of the blank-go sample, I receive the following error:
...
--- FAIL: TestMain (0.35s)
main_test.go:32: NoCredentialProviders: no valid providers in chain. Deprecated.
For verbose messaging see aws.Config.CredentialsChainVerboseErrors
main_test.go:34: ERROR
main_test.go:36: Output does not contain FunctionCount.
FAIL
exit status 1
FAIL github.com/awsdocs/aws-lambda-developer-guide/sample-apps/blank-go 0.379s`
Reproduction
Clear locally stored profiles/credentials
Create a profile with a v2 credential via aws configure sso
Export cached profile as default
Run ../sample-apps/blank-go/0-run-tests.sh
Resolution
Adding profile values (key_id/secret/token) to .../.aws/credentials file allows script to pass successfully.
Use of yawsso simplifies this process
The text was updated successfully, but these errors were encountered:
mwunderl
changed the title
blank-go/0-run-tests.sh failure when using aws cli v2 with sso
sample-apps/blank-go - 0-run-tests.sh failure with aws cli v2 + sso
Oct 31, 2023
Not a big bug by any means, and it's easy to fix my local environment. However, a new user to AWS may find the bellow error (resulting from properly following the walkthrough) to be confusing and prevent use of the sample app. Documentation does not note an auth limitation for v2 sso.
Environment:
aws configure sso
Error
Attempting to run through the deployment of the blank-go sample, I receive the following error:
Reproduction
aws configure sso
Resolution
Adding profile values (key_id/secret/token) to .../.aws/credentials file allows script to pass successfully.
Use of yawsso simplifies this process
The text was updated successfully, but these errors were encountered: