From eaba6a35e66298a569f0d039370a5f4073c56d9c Mon Sep 17 00:00:00 2001 From: Jeremy Cline Date: Sat, 10 Aug 2024 11:36:06 -0400 Subject: [PATCH] Enable AWS image uploads in production Now that AWS image uploads work in staging, enable them in production via the config. A functional build is already deployed to OpenShift in prod, but since there is no AWS config it won't do anything until we merge and deploy this. --- .../cloud-image-uploader/templates/config.toml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/roles/openshift-apps/cloud-image-uploader/templates/config.toml b/roles/openshift-apps/cloud-image-uploader/templates/config.toml index 5748fdd320..be647c2f7b 100644 --- a/roles/openshift-apps/cloud-image-uploader/templates/config.toml +++ b/roles/openshift-apps/cloud-image-uploader/templates/config.toml @@ -33,11 +33,8 @@ auto_delete = false exclusive = false arguments = {} -# For now, just enable AWS support in staging. -{% if env == "staging" %} [consumer_config.aws] base_region = "us-east-1" -s3_bucket_name = "fedora-s3-bucket-fedimg-staging" ami_description = "" ami_volume_dev_name = "/dev/sda1" ami_volume_type = "gp3" @@ -66,6 +63,11 @@ ami_regions = [ "us-west-1", "us-west-2", ] +{% if env == "staging" %} +s3_bucket_name = "fedora-s3-bucket-fedimg-staging" +publish_amqp_messages = true +{% else %} +s3_bucket_name = "fedora-s3-bucket-fedimg" publish_amqp_messages = false {% endif %}