From 653bf3621d3d85470a09b7ef9f6050d7ad2f3586 Mon Sep 17 00:00:00 2001 From: Malte Poll Date: Wed, 3 May 2023 10:03:32 +0200 Subject: [PATCH] image: replicate AWS images to eu-west-1 and eu-west-3 --- cli/internal/cmd/iamcreate.go | 4 ++++ dev-docs/workflows/release.md | 2 ++ docs/docs/getting-started/first-steps.md | 2 ++ docs/docs/workflows/config.md | 4 ++++ internal/osimage/aws/awsupload.go | 2 +- 5 files changed, 13 insertions(+), 1 deletion(-) diff --git a/cli/internal/cmd/iamcreate.go b/cli/internal/cmd/iamcreate.go index 4c626b415..cb3c48d6e 100644 --- a/cli/internal/cmd/iamcreate.go +++ b/cli/internal/cmd/iamcreate.go @@ -404,6 +404,10 @@ func (c *awsIAMCreator) parseFlagsAndSetupConfig(cmd *cobra.Command, flags iamFl if strings.HasPrefix(zone, "eu-central-1") { flags.aws.region = "eu-central-1" + } else if strings.HasPrefix(zone, "eu-west-1") { + flags.aws.region = "eu-west-1" + } else if strings.HasPrefix(zone, "eu-west-3") { + flags.aws.region = "eu-west-3" } else if strings.HasPrefix(zone, "us-east-2") { flags.aws.region = "us-east-2" } else if strings.HasPrefix(zone, "ap-south-1") { diff --git a/dev-docs/workflows/release.md b/dev-docs/workflows/release.md index 4afa0eb72..5b0f72f0a 100644 --- a/dev-docs/workflows/release.md +++ b/dev-docs/workflows/release.md @@ -83,6 +83,8 @@ Depending on how far the pipeline ran we need to delete: **Important:** You need to repeat the following steps for every region supported by Constellation! Currently, this includes:  - Frankfurt (eu-central-1) +- Ireland (eu-west-1) +- Paris (eu-west-3) - Ohio (us-east-2) - Mumbai (ap-south-1)  diff --git a/docs/docs/getting-started/first-steps.md b/docs/docs/getting-started/first-steps.md index ad89d89c8..30b3a3e87 100644 --- a/docs/docs/getting-started/first-steps.md +++ b/docs/docs/getting-started/first-steps.md @@ -57,6 +57,8 @@ If you encounter any problem with the following steps, make sure to use the [lat Constellation OS images are currently replicated to the following regions: * `eu-central-1` + * `eu-west-1` + * `eu-west-3` * `us-east-2` * `ap-south-1` diff --git a/docs/docs/workflows/config.md b/docs/docs/workflows/config.md index e6b46b7d9..c66f20c25 100644 --- a/docs/docs/workflows/config.md +++ b/docs/docs/workflows/config.md @@ -130,6 +130,8 @@ This command creates IAM configuration for the AWS zone `eu-central-1a` using th Constellation OS images are currently replicated to the following regions: * `eu-central-1` +* `eu-west-1` +* `eu-west-3` * `us-east-2` * `ap-south-1` @@ -226,6 +228,8 @@ The following describes the configuration fields and how you obtain the required Constellation OS images are currently replicated to the following regions: * `eu-central-1` + * `eu-west-1` + * `eu-west-3` * `us-east-2` * `ap-south-1` diff --git a/internal/osimage/aws/awsupload.go b/internal/osimage/aws/awsupload.go index ca903c69c..43fab5d6e 100644 --- a/internal/osimage/aws/awsupload.go +++ b/internal/osimage/aws/awsupload.go @@ -586,5 +586,5 @@ const ( var ( errAMIDoesNotExist = errors.New("ami does not exist") - replicationRegions = []string{"us-east-2", "ap-south-1"} + replicationRegions = []string{"eu-west-1", "eu-west-3", "us-east-2", "ap-south-1"} )