From 045092637aa28d3f575efa5a66acff352dc19983 Mon Sep 17 00:00:00 2001 From: Jaynti Raj Date: Mon, 8 Mar 2021 06:51:06 -0800 Subject: [PATCH] feat(region-info): added AppMesh ECR account for af-south-1 region (#12814) AppMesh is launched in `af-south-1` region and has a separate account for storing Envoy images in ECR. Added the ECR account information. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- .gitallowed | 1 + .../ecs-service-extensions/lib/extensions/appmesh.ts | 1 + .../test/integ.all-service-addons.expected.json | 9 +++++++++ .../test/integ.multiple-environments.expected.json | 6 ++++++ packages/@aws-cdk/region-info/build-tools/fact-tables.ts | 1 + 5 files changed, 18 insertions(+) diff --git a/.gitallowed b/.gitallowed index 972728e4b4a7e..2fa8726e1171d 100644 --- a/.gitallowed +++ b/.gitallowed @@ -22,3 +22,4 @@ account: '772975370895' account: '856666278305' account: '840364872350' account: '422531588944' +account: '924023996002' diff --git a/packages/@aws-cdk-containers/ecs-service-extensions/lib/extensions/appmesh.ts b/packages/@aws-cdk-containers/ecs-service-extensions/lib/extensions/appmesh.ts index 35436d11ce691..7749683fb4235 100644 --- a/packages/@aws-cdk-containers/ecs-service-extensions/lib/extensions/appmesh.ts +++ b/packages/@aws-cdk-containers/ecs-service-extensions/lib/extensions/appmesh.ts @@ -165,6 +165,7 @@ export class AppMeshExtension extends ServiceExtension { 'me-south-1': this.accountIdForRegion('me-south-1'), 'ap-east-1': this.accountIdForRegion('ap-east-1'), + 'af-south-1': this.accountIdForRegion('af-south-1'), }, }); diff --git a/packages/@aws-cdk-containers/ecs-service-extensions/test/integ.all-service-addons.expected.json b/packages/@aws-cdk-containers/ecs-service-extensions/test/integ.all-service-addons.expected.json index 7ef708ccc31aa..a6e83c8b6ad66 100644 --- a/packages/@aws-cdk-containers/ecs-service-extensions/test/integ.all-service-addons.expected.json +++ b/packages/@aws-cdk-containers/ecs-service-extensions/test/integ.all-service-addons.expected.json @@ -3354,6 +3354,9 @@ }, "ap-east-1": { "ecrRepo": "856666278305" + }, + "af-south-1": { + "ecrRepo": "924023996002" } }, "greetingenvoyimageaccountmapping": { @@ -3413,6 +3416,9 @@ }, "ap-east-1": { "ecrRepo": "856666278305" + }, + "af-south-1": { + "ecrRepo": "924023996002" } }, "greeterenvoyimageaccountmapping": { @@ -3472,6 +3478,9 @@ }, "ap-east-1": { "ecrRepo": "856666278305" + }, + "af-south-1": { + "ecrRepo": "924023996002" } } }, diff --git a/packages/@aws-cdk-containers/ecs-service-extensions/test/integ.multiple-environments.expected.json b/packages/@aws-cdk-containers/ecs-service-extensions/test/integ.multiple-environments.expected.json index 2aab9da2612fa..85c6a59e919de 100644 --- a/packages/@aws-cdk-containers/ecs-service-extensions/test/integ.multiple-environments.expected.json +++ b/packages/@aws-cdk-containers/ecs-service-extensions/test/integ.multiple-environments.expected.json @@ -2173,6 +2173,9 @@ }, "ap-east-1": { "ecrRepo": "856666278305" + }, + "af-south-1": { + "ecrRepo": "924023996002" } }, "namedevelopmentenvoyimageaccountmapping": { @@ -2232,6 +2235,9 @@ }, "ap-east-1": { "ecrRepo": "856666278305" + }, + "af-south-1": { + "ecrRepo": "924023996002" } } } diff --git a/packages/@aws-cdk/region-info/build-tools/fact-tables.ts b/packages/@aws-cdk/region-info/build-tools/fact-tables.ts index 528cd8463f05e..dc7f8ff586449 100644 --- a/packages/@aws-cdk/region-info/build-tools/fact-tables.ts +++ b/packages/@aws-cdk/region-info/build-tools/fact-tables.ts @@ -158,5 +158,6 @@ export const APPMESH_ECR_ACCOUNTS: { [region: string]: string } = { 'me-south-1': '772975370895', 'ap-east-1': '856666278305', + 'af-south-1': '924023996002', };