Skip to content

Commit

Permalink
Merge pull request #555 from scottyhq/aws-ip-whitelist
Browse files Browse the repository at this point in the history
added dynamic ip whitelist to aws-west2 deploy step
  • Loading branch information
scottyhq authored Feb 24, 2020
2 parents 3ec25c2 + 55f30cd commit 34661fe
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,24 @@ jobs:
# command: |
# hubploy deploy nasa pangeo-deploy ${CIRCLE_BRANCH}

# sleep 60 for now, but better to poll for readiness https://docs.aws.amazon.com/eks/latest/userguide/cluster-endpoint.html
- run:
name: Add Runner IP to EKS Kubernetes API Whitelist
command: |
RUNNERIP=`curl --silent https://checkip.amazonaws.com`
aws --version
aws eks update-cluster-config --name pangeo --resources-vpc-config publicAccessCidrs=$RUNNERIP/32 > /dev/null
sleep 60
- run:
name: Deploy aws-uswest2.pangeo.io
when: always
command: |
hubploy deploy icesat2 pangeo-deploy ${CIRCLE_BRANCH}
- run:
name: Revert to Original EKS IP Whitelist
when: always
command: |
aws eks update-cluster-config --name pangeo --resources-vpc-config publicAccessCidrs="${AWS_IP_WHITELIST }" > /dev/null
- run:
name: Deploy ooi.pangeo.io
Expand Down

0 comments on commit 34661fe

Please sign in to comment.