Skip to content

Commit

Permalink
[BugFix] Fix missing account ID in EC2 setup (#4092)
Browse files Browse the repository at this point in the history
  • Loading branch information
gchhablani authored Aug 10, 2023
1 parent aebb59e commit 51161cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/challenges/aws_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1495,6 +1495,7 @@ def setup_ec2(challenge):
ec2_worker_script = f.read()

variables = {
"AWS_ACCOUNT_ID": aws_keys["AWS_ACCOUNT_ID"],
"AWS_ACCESS_KEY_ID": aws_keys["AWS_ACCESS_KEY_ID"],
"AWS_SECRET_ACCESS_KEY": aws_keys["AWS_SECRET_ACCESS_KEY"],
"AWS_REGION": aws_keys["AWS_REGION"],
Expand Down
1 change: 1 addition & 0 deletions scripts/deployment/deploy_ec2_worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ newgrp docker
aws configure set aws_access_key_id ${AWS_ACCESS_KEY_ID}
aws configure set aws_secret_access_key ${AWS_SECRET_ACCESS_KEY}
aws configure set default.region ${AWS_REGION}
export AWS_ACCOUNT_ID=${AWS_ACCOUNT_ID}
export COMMIT_ID="latest"
export AWS_DEFAULT_REGION=${AWS_REGION}
export TRAVIS_BRANCH=${ENVIRONMENT}
Expand Down

0 comments on commit 51161cf

Please sign in to comment.