Skip to content

Commit 2b5b8f3

Browse files
Use circleci AWS IAM role (#553)
* Use circleci role * remove * remove
1 parent 28e3b0d commit 2b5b8f3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.circleci/config.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
version: 2.1
22
orbs:
33
python: circleci/[email protected]
4+
aws-cli: circleci/[email protected]
45

56
workflows:
67
ci:
@@ -175,13 +176,14 @@ jobs:
175176
pip install -r model-engine/requirements.txt
176177
- install_client
177178
- install_server
179+
- aws-cli/setup:
180+
role-arn: ${CIRCLECI_ROLE_ARN}
181+
aws-region: AWS_REGION
178182
- run:
179183
name: Run integration tests
180184
command: |
181185
pushd $HOME/project
182186
kubectl port-forward svc/model-engine 5001:80 &
183-
export AWS_ACCESS_KEY_ID=$CIRCLECI_AWS_ACCESS_KEY
184-
export AWS_SECRET_ACCESS_KEY=$CIRCLECI_AWS_SECRET_KEY
185187
export GIT_TAG=$CIRCLE_SHA1
186188
pytest integration_tests
187189

0 commit comments

Comments
 (0)