From 165168f7d12a136a3cfba4a0ee65597730ea5197 Mon Sep 17 00:00:00 2001 From: Daniel Schroeder Date: Fri, 13 Oct 2023 10:55:47 +0200 Subject: [PATCH] fix: removes names from IAM policy and role, as this conflicts with multi-region deployments (#184) * fix: removes names from IAM policy and role, as this conflicts with multi-region deployments * fix: removes names from IAM policy and role, as this conflicts with multi-region deployments * fix: removes names from IAM policy and role, as this conflicts with multi-region deployments --- VERSION | 2 +- lib/index.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 4772543..619b537 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.3.2 +3.3.3 diff --git a/lib/index.ts b/lib/index.ts index 9aeb5a7..fd95d53 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -279,7 +279,6 @@ export class KeyPair extends Construct implements ITaggable { stack, 'EC2-Key-Pair-Manager-Policy', { - managedPolicyName: `${this.prefix}-${cleanID}`, description: `Used by Lambda ${cleanID}, which is a custom CFN resource, managing EC2 Key Pairs`, statements: [ new aws_iam.PolicyStatement({ @@ -355,7 +354,6 @@ export class KeyPair extends Construct implements ITaggable { ); const role = new aws_iam.Role(stack, 'EC2-Key-Pair-Manager-Role', { - roleName: `${this.prefix}-${cleanID}`, description: `Used by Lambda ${cleanID}, which is a custom CFN resource, managing EC2 Key Pairs`, assumedBy: new aws_iam.ServicePrincipal('lambda.amazonaws.com'), managedPolicies: [