From a3323e81ea83e25188e5d4bbaefa4ffee36729a0 Mon Sep 17 00:00:00 2001 From: Pavel Tcholakov Date: Thu, 8 Aug 2024 19:13:18 +0200 Subject: [PATCH] Update construct test snapshot --- .../restate-constructs.test.ts.snap | 117 +++++++++++++++++- 1 file changed, 116 insertions(+), 1 deletion(-) diff --git a/test/__snapshots__/restate-constructs.test.ts.snap b/test/__snapshots__/restate-constructs.test.ts.snap index 32bfba5..e74c640 100644 --- a/test/__snapshots__/restate-constructs.test.ts.snap +++ b/test/__snapshots__/restate-constructs.test.ts.snap @@ -35,6 +35,35 @@ exports[`Restate constructs Create a self-hosted Restate environment deployed on PolicyName: RestateInstanceRoleDefaultPolicyD1D39538 Roles: - Ref: RestateInstanceRoleACC59A6F + RestateInvokerRole42565598: + Type: 'AWS::IAM::Role' + Properties: + AssumeRolePolicyDocument: + Statement: + - Action: 'sts:AssumeRole' + Effect: Allow + Principal: + AWS: + 'Fn::GetAtt': + - RestateInstanceRoleACC59A6F + - Arn + Version: '2012-10-17' + RestateAssumeInvokerRolePolicy1FA6B6C2: + Type: 'AWS::IAM::Policy' + Properties: + PolicyDocument: + Statement: + - Action: 'sts:AssumeRole' + Effect: Allow + Resource: + 'Fn::GetAtt': + - RestateInvokerRole42565598 + - Arn + Sid: AllowAssumeInvokerRole + Version: '2012-10-17' + PolicyName: RestateAssumeInvokerRolePolicy1FA6B6C2 + Roles: + - Ref: RestateInstanceRoleACC59A6F RestateLogsFD86ECAE: Type: 'AWS::Logs::LogGroup' Properties: @@ -900,7 +929,11 @@ exports[`Restate constructs Deploy a Lambda service handler to a remote Restate - >- ServiceDeployerCustomResourceProviderframeworkonEventServiceRole865AFB0C - Arn - Runtime: nodejs18.x + Runtime: + 'Fn::FindInMap': + - LatestNodeRuntimeMap + - Ref: 'AWS::Region' + - value Timeout: 900 DependsOn: - >- @@ -927,5 +960,87 @@ exports[`Restate constructs Deploy a Lambda service handler to a remote Restate PolicyName: ServiceDeployerInvocationPolicyD09B639D Roles: - Ref: InvokerRole4DB2757E +Mappings: + LatestNodeRuntimeMap: + af-south-1: + value: nodejs20.x + ap-east-1: + value: nodejs20.x + ap-northeast-1: + value: nodejs20.x + ap-northeast-2: + value: nodejs20.x + ap-northeast-3: + value: nodejs20.x + ap-south-1: + value: nodejs20.x + ap-south-2: + value: nodejs20.x + ap-southeast-1: + value: nodejs20.x + ap-southeast-2: + value: nodejs20.x + ap-southeast-3: + value: nodejs20.x + ap-southeast-4: + value: nodejs20.x + ap-southeast-5: + value: nodejs20.x + ap-southeast-7: + value: nodejs20.x + ca-central-1: + value: nodejs20.x + ca-west-1: + value: nodejs20.x + cn-north-1: + value: nodejs18.x + cn-northwest-1: + value: nodejs18.x + eu-central-1: + value: nodejs20.x + eu-central-2: + value: nodejs20.x + eu-isoe-west-1: + value: nodejs18.x + eu-north-1: + value: nodejs20.x + eu-south-1: + value: nodejs20.x + eu-south-2: + value: nodejs20.x + eu-west-1: + value: nodejs20.x + eu-west-2: + value: nodejs20.x + eu-west-3: + value: nodejs20.x + il-central-1: + value: nodejs20.x + me-central-1: + value: nodejs20.x + me-south-1: + value: nodejs20.x + mx-central-1: + value: nodejs20.x + sa-east-1: + value: nodejs20.x + us-east-1: + value: nodejs20.x + us-east-2: + value: nodejs20.x + us-gov-east-1: + value: nodejs18.x + us-gov-west-1: + value: nodejs18.x + us-iso-east-1: + value: nodejs18.x + us-iso-west-1: + value: nodejs18.x + us-isob-east-1: + value: nodejs18.x + us-west-1: + value: nodejs20.x + us-west-2: + value: nodejs20.x " `;