Skip to content

Commit 21cd469

Browse files
Fix AWS IAM role access (#556)
* Fix AWS IAM role access * one more * move
1 parent 86a70c3 commit 21cd469

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ jobs:
9999
executor: ubuntu-large
100100
steps:
101101
- checkout
102+
- aws-cli/setup:
103+
role-arn: ${CIRCLECI_ROLE_ARN}
104+
aws-region: AWS_REGION
102105
- run:
103106
name: Build Docker Image
104107
command: |
@@ -176,9 +179,6 @@ jobs:
176179
pip install -r model-engine/requirements.txt
177180
- install_client
178181
- install_server
179-
- aws-cli/setup:
180-
role-arn: ${CIRCLECI_ROLE_ARN}
181-
aws-region: AWS_REGION
182182
- run:
183183
name: Run integration tests
184184
command: |
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Configmap for AWS credentials inside minikube.
22
[default]
3-
aws_access_key_id = $CIRCLECI_AWS_ACCESS_KEY
4-
aws_secret_access_key = $CIRCLECI_AWS_SECRET_KEY
3+
aws_access_key_id = $AWS_ACCESS_KEY_ID
4+
aws_secret_access_key = $AWS_SECRET_ACCESS_KEY
5+
aws_session_token = $AWS_SESSION_TOKEN

.circleci/resources/.minikube-registry-creds

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
# See expect syntax here: https://manpages.ubuntu.com/manpages/trusty/man1/expect.1.html
44
spawn minikube addons configure registry-creds
55
expect "Do you want to enable AWS Elastic Container Registry?" { send "y\r" }
6-
expect "Enter AWS Access Key ID:" { send "$CIRCLECI_AWS_ACCESS_KEY\r" }
7-
expect "Enter AWS Secret Access Key:" { send "$CIRCLECI_AWS_SECRET_KEY\r" }
8-
expect "Enter AWS Session Token:" { send "\r" }
6+
expect "Enter AWS Access Key ID:" { send "$AWS_ACCESS_KEY_ID\r" }
7+
expect "Enter AWS Secret Access Key:" { send "$AWS_SECRET_ACCESS_KEY\r" }
8+
expect "Enter AWS Session Token:" { send "$AWS_SESSION_TOKEN\r" }
99
expect "Enter AWS Region:" { send "us-west-2\r" }
1010
expect "Enter 12 digit AWS Account ID (Comma separated list):" { send "$CIRCLECI_AWS_ACCOUNT_ID\r" }
1111
expect "Enter ARN of AWS role to assume:" { send "\r" }

0 commit comments

Comments
 (0)