Skip to content

Commit

Permalink
templates/packer: add comment to get_aws_creds.sh
Browse files Browse the repository at this point in the history
Add a comment explaining why it is important to set the AWS bucket in
the worker configuration, even if the `AWS_ACCOUNT_IMAGE_BUILDER_ARN` is
empty.
  • Loading branch information
thozza committed Oct 11, 2022
1 parent a7ab90c commit a80273c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ echo "Deploy AWS credentials."

echo "Write the bucket."
# Always create the header and write the bucket, it's slightly ugly but it will work
# The bucket is always set, becuase the instance can potentially authenticate to AWS
# with its instance profile, without any explicit credentials.
sudo tee -a /etc/osbuild-worker/osbuild-worker.toml > /dev/null << EOF
[aws]
bucket = "${WORKER_CONFIG_AWS_BUCKET:-}"
Expand Down

0 comments on commit a80273c

Please sign in to comment.