Skip to main content

Troubleshooting: Failure on Building Custom AMI with CircleCI Image Builder

Overview

You can see NoCredentialProviders error while utilizing our open source to build your customer images.

Failed by NoCredentialProviders Error

The Build images step fails by the NoCredentialProviders error like the below:

no valid credential sources for found.\n\nPlease see \nfor more information about providing credentials.\n\nError: NoCredentialProviders: no valid providers in chain. Deprecated.\n For verbose messaging see aws.Config.CredentialsChainVerboseErrors

Solution

Check whether the name of your contexts matches the one defined on the config.yml file.

  • contexts

contexts name.png
  • .circleci/config.yml

workflows:
  build_aws_2019:
    jobs:
      - windows_visualstudio_aws_2019:
          context: CPE_ORBS_AWS
          filters: *filters

Additional Resources:

Did this answer your question?