aws / aws-codebuild-docker-images

Official AWS CodeBuild repository for managed Docker images http://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref.html
Other
1.12k stars 977 forks source link

local_builds/codebuild_build.sh does not support the new sso session credentials #597

Open nicolaevladescu opened 1 year ago

nicolaevladescu commented 1 year ago

Describe the bug local_builds/codebuild_build.sh does not support the new sso session credentials.

The new sso sessions have sso_region, sso_start_url in the sessions stanza of ~/.aws/config not under the profile.

To Reproduce Steps to reproduce the behavior:

  1. Use SSM or SecretsManager items in your buildspec yaml

Expected behavior Use [sso-session] stanzas from ~/.aws/config to authenticate to AWS and retrieve Secrets, etc.

Logs build_1 | panic: profile "admin" is configured to use SSO but is missing required configuration: sso_region, sso_start_url

Platform

Additional context Running custom docker image