Env variables not being inserted into build or deploy

envars
aws

#1

I’ve read through the circle-ci documents and from what I can tell I should be able to use environment variables I set in the UI. Im testing my deployment (aws s3 cp) on a feature branch (not develop or master). I’ve defined the AWS keys in the environment variables UI section (not the aws keys section because I need to deploy to different accounts). I’ve tried to reference those variables many different ways (VAR, {VAR}, ENV[‘VAR’]. I’ve even tried echoing the values out to see if the variables can even be referenced. I cannot get the environment variables to resolve. The native circel env vars resolve. What am I doing wrong??

Here is my circle-ci.yml file. Thoughts?

machine:
override:
- nvm install 6.10.3
- echo $CI
- echo $HOME
- echo $AWS_STAGE_ID
- echo $AWS_STAGE_KEY

dependencies:
pre:
- nvm use 6.10.3 && nvm alias default 6.10.3

compile:
override:
- npm run build

deployment:
staging:
branch: feat/auto10-cideployment
commands:
- export AWS_SECRET_KEY_ID=$AWS_STAGE_ID
- export AWS_SECRET_ACCESS_KEY=$AWS_STAGE_KEY


#2