From 3d1b747edbf20a6ffd2ae80165804aa023862aeb Mon Sep 17 00:00:00 2001 From: Sabrina Lo Date: Wed, 30 Aug 2023 15:18:22 -0700 Subject: [PATCH] fix(catalog-backend-module-aws): pass in region when initialize EKS cluster Signed-off-by: Sabrina Lo --- .changeset/five-mangos-joke.md | 5 +++++ .../src/processors/AwsEKSClusterProcessor.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/five-mangos-joke.md diff --git a/.changeset/five-mangos-joke.md b/.changeset/five-mangos-joke.md new file mode 100644 index 0000000000..e8a285f279 --- /dev/null +++ b/.changeset/five-mangos-joke.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-catalog-backend-module-aws': patch +--- + +AwsEksClusterProcessor pass in region when initialize EKS cluster diff --git a/plugins/catalog-backend-module-aws/src/processors/AwsEKSClusterProcessor.ts b/plugins/catalog-backend-module-aws/src/processors/AwsEKSClusterProcessor.ts index c5d48a7690..b7d5f620d0 100644 --- a/plugins/catalog-backend-module-aws/src/processors/AwsEKSClusterProcessor.ts +++ b/plugins/catalog-backend-module-aws/src/processors/AwsEKSClusterProcessor.ts @@ -108,6 +108,7 @@ export class AwsEKSClusterProcessor implements CatalogProcessor { const eksClient = new EKS({ credentials, credentialDefaultProvider: providerFunction, + region, }); const clusters = await eksClient.listClusters({}); if (clusters.clusters === undefined) {