From 2e2d1413204b916bc97d08d15e1a4da653bb38fb Mon Sep 17 00:00:00 2001 From: Jeremy Cline Date: Jun 24 2024 19:20:18 +0000 Subject: fedora-image-uploader: Add AWS configuration for staging This will enable AWS support on staging. It remains off in production. --- diff --git a/roles/openshift-apps/cloud-image-uploader/templates/config.toml b/roles/openshift-apps/cloud-image-uploader/templates/config.toml index ecae7e8..3eb0f92 100644 --- a/roles/openshift-apps/cloud-image-uploader/templates/config.toml +++ b/roles/openshift-apps/cloud-image-uploader/templates/config.toml @@ -33,6 +33,42 @@ 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-testing" +ami_description = "" +ami_volume_dev_name = "/dev/sda1" +ami_volume_type = "gp3" +ami_volume_size = {{ aws_volume_size }} +ami_regions = [ + "af-south-1", + "eu-north-1", + "ap-south-1", + "eu-west-3", + "eu-west-2", + "eu-south-1", + "eu-west-1", + "ap-northeast-3", + "ap-northeast-2", + "me-south-1", + "ap-northeast-1", + "sa-east-1", + "ca-central-1", + "ap-east-1", + "ap-southeast-1", + "ap-southeast-2", + "ap-southeast-3", + "eu-central-1", + "us-east-1", + "us-east-2", + "us-west-1", + "us-west-2", +] +publish_amqp_messages = false +{% endif %} + [consumer_config.azure] location = "eastus" {% if env == "staging" %}