Hey, I have a problem with exporting credentials from ~/.aws/credentials
to environment so they become available as$AWS_SECRET_ACCESS_KEY
and $AWS_ACCESS_KEY_ID
during the build. Especially during docker image build as
docker build --build-arg CIRCLE_BUILD_NUM=$CIRCLE_BUILD_NUM --build-arg AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID --build-arg AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY
Any hints how to achieve that?
Hey,
Have you tried adding both environment variables to your project via the UI’s Project Settings page? That will allow them to be available (exported) to the entire build process (after the machine) section.
To get there, click the gear icon for your project’s settings page, then find the ‘Tweaks’ section and you’ll see a link for environment variables.
Hey,
I added both ENV variables and it works.
It is not the perfect solution, but it is enough to keep me running
Thanks a mil
1 Like