templates/packer: add comment to get_aws_creds.sh

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.
This commit is contained in:
Tomáš Hozza 2022-10-03 16:41:17 +02:00 committed by Ondřej Budai
parent 09daa75adf
commit 6ae8904f5a

View file

@ -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:-}"