Skip to content

Commit

Permalink
try moving credentials file to default location
Browse files Browse the repository at this point in the history
  • Loading branch information
scottyhq authored Mar 26, 2020
1 parent d425d6c commit 7cf3c2b
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,21 @@ jobs:
name: Authenticate to AWS k8s cluster
when: always
command: |
AWS_SHARED_CREDENTIALS_FILE=/home/circleci/repo/secrets-aws/aws-config.txt
#unable to get this env var to work for some reason
#AWS_SHARED_CREDENTIALS_FILE=/home/circleci/repo/secrets-aws/aws-config.txt
aws --version
echo $PWD
ls
aws eks --region us-west-2 update-kubeconfig --name pangeo-binder
aws eks list-clusters --region us-west-2
mkdir ~/.aws
mv /home/circleci/repo/secrets-aws/aws-config.txt ~/.aws/credentials
aws configure set default.region us-west-2
aws eks update-kubeconfig --name pangeo-binder
aws eks list-clusters
- run:
name: Add Runner IP to EKS Kubernetes API Whitelist
when: always
command: |
AWS_SHARED_CREDENTIALS_FILE=/home/circleci/repo/secrets-aws/aws-config.txt
RUNNERIP=`curl --silent https://checkip.amazonaws.com`
aws eks update-cluster-config --region us-west-2 --name pangeo --resources-vpc-config publicAccessCidrs=${RUNNERIP}/32 > /dev/null
aws eks update-cluster-config --name pangeo-binder --resources-vpc-config publicAccessCidrs=${RUNNERIP}/32 > /dev/null
sleep 90
- run:
name: Deploy AWS binderhub
Expand All @@ -99,7 +101,7 @@ jobs:
when: always
command: |
AWS_SHARED_CREDENTIALS_FILE=~/repo/secrets-aws/aws-config.txt
aws eks update-cluster-config --region us-west-2 --name pangeo --resources-vpc-config publicAccessCidrs=${AWS_IP_WHITELIST} > /dev/null
aws eks update-cluster-config --name pangeo-binder --resources-vpc-config publicAccessCidrs=${AWS_IP_WHITELIST} > /dev/null
workflows:
version: 2
Expand Down

0 comments on commit 7cf3c2b

Please sign in to comment.