cmd/osbuild-worker: Configure s3 bucket on the worker itself

Parameterize aws section of worker config. If credentials is empty,
the iam role will be used.
This commit is contained in:
Sanne Raymaekers 2022-03-08 11:27:29 +01:00
parent 3a2002f557
commit 63a0bbc1f2
3 changed files with 16 additions and 5 deletions

View file

@ -14,7 +14,8 @@ credentials = "/etc/osbuild-worker/gcp_credentials.json"
[azure]
credentials = "/etc/osbuild-worker/azure_credentials.toml"
[aws]
credentials = "/etc/osbuild-worker/aws_credentials.toml"
credentials = "${WORKER_CONFIG_AWS_CREDENTIALS:-}"
bucket = "${WORKER_CONFIG_AWS_BUCKET:-}"
EOF
# Prepare osbuild-composer's remote worker services and sockets.