File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ jobs:
194194 EOF
195195 - run :
196196 name : Create/Update AWS User policy
197- command : eval $( python ./manager/cluster_config_env.py cluster.yaml) && python ./ dev/create_user.py $CORTEX_CLUSTER_NAME 388176669058 $CORTEX_REGION > $BASH_ENV
197+ command : python ./dev/create_user.py cortex-nightly 388176669058 us-east-1 > $BASH_ENV
198198 - run :
199199 name : Wait for new keys to propagate in AWS
200200 command : sleep 10
@@ -247,15 +247,26 @@ jobs:
247247 - image : cimg/python:3.6
248248 steps :
249249 - setup_remote_docker
250+ - checkout
250251 - run :
251- name : Install Cortex CLI
252+ name : Install Dependencies
252253 command : |
254+ pip install boto3 pyyaml awscli
253255 pip install https://s3-us-west-2.amazonaws.com/get-cortex/master/python/cortex-master.tar.gz
254256 - run :
255257 name : Initialize Credentials
256258 command : |
257259 echo 'export AWS_ACCESS_KEY_ID=${NIGHTLY_AWS_ACCESS_KEY_ID}' >> $BASH_ENV
258260 echo 'export AWS_SECRET_ACCESS_KEY=${NIGHTLY_AWS_SECRET_ACCESS_KEY}' >> $BASH_ENV
261+ - run :
262+ name : Create/Update AWS User policy
263+ command : python ./dev/create_user.py cortex-nightly 388176669058 us-east-1 > $BASH_ENV
264+ - run :
265+ name : Wait for new keys to propagate in AWS
266+ command : sleep 10
267+ - run :
268+ name : Verify configuration of credentials
269+ command : aws sts get-caller-identity | jq ".Arn" | grep "dev-cortex-nightly-us-east-1"
259270 - run :
260271 name : Delete Cluster
261272 command : cortex cluster down --name cortex-nightly --region us-east-1 -y
You can’t perform that action at this time.
0 commit comments