From 3ffa7c60c50bb60c9f11445cec44e95e0d96bc92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CLAKSHMIRPILLAI=E2=80=9D?= <“luxmi.r.pillai@gmail.com”> Date: Thu, 21 Mar 2024 11:05:07 +0000 Subject: [PATCH 1/3] Update the snapshots and remove yamlDefinedResources --- cdk/lib/__snapshots__/stripe-webhook-endpoints.test.ts.snap | 4 ++-- cdk/lib/stripe-webhook-endpoints.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cdk/lib/__snapshots__/stripe-webhook-endpoints.test.ts.snap b/cdk/lib/__snapshots__/stripe-webhook-endpoints.test.ts.snap index d7acf9c27c..67c0fb0d4c 100644 --- a/cdk/lib/__snapshots__/stripe-webhook-endpoints.test.ts.snap +++ b/cdk/lib/__snapshots__/stripe-webhook-endpoints.test.ts.snap @@ -1717,7 +1717,7 @@ exports[`The StripeWebhookEndpoints stack matches the snapshot 2`] = ` ], }, ], - "Runtime": "java11", + "Runtime": "java21", "Tags": { "Stack": "support", "Stage": "PROD", @@ -1808,7 +1808,7 @@ exports[`The StripeWebhookEndpoints stack matches the snapshot 2`] = ` ], }, ], - "Runtime": "java11", + "Runtime": "java21", "Tags": { "Stack": "support", "Stage": "PROD", diff --git a/cdk/lib/stripe-webhook-endpoints.ts b/cdk/lib/stripe-webhook-endpoints.ts index 1856190a20..a0c162b66b 100644 --- a/cdk/lib/stripe-webhook-endpoints.ts +++ b/cdk/lib/stripe-webhook-endpoints.ts @@ -30,7 +30,7 @@ export class StripeWebhookEndpoints extends GuStack { // ---- Existing CFN template ---- // const yamlTemplateFilePath = path.join(__dirname, "../..", "handlers/stripe-webhook-endpoints/cfn.yaml"); - const yamlDefinedResources = new CfnInclude(this, "YamlTemplate", { + new CfnInclude(this, "YamlTemplate", { templateFile: yamlTemplateFilePath, }); From 4f5a8c6164005c3b79c4eba163d87fc20ac2c8ea Mon Sep 17 00:00:00 2001 From: Tom Forbes Date: Fri, 22 Mar 2024 08:42:39 +0000 Subject: [PATCH 2/3] Use java 21 --- cdk/lib/stripe-webhook-endpoints.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cdk/lib/stripe-webhook-endpoints.ts b/cdk/lib/stripe-webhook-endpoints.ts index a0c162b66b..96f2e64eaa 100644 --- a/cdk/lib/stripe-webhook-endpoints.ts +++ b/cdk/lib/stripe-webhook-endpoints.ts @@ -43,7 +43,7 @@ export class StripeWebhookEndpoints extends GuStack { functionName: `stripe-payment-intent-issues-cdk-${this.stage}`, fileName: `${app}.jar`, handler: "com.gu.paymentIntentIssues.Lambda::handler", - runtime: Runtime.JAVA_11, + runtime: Runtime.JAVA_21, memorySize: 512, timeout: Duration.seconds(300), environment: { @@ -61,7 +61,7 @@ export class StripeWebhookEndpoints extends GuStack { functionName: `stripe-customer-updated-cdk-${this.stage}`, fileName: `${app}.jar`, handler: "com.gu.stripeCardUpdated.Lambda::apply", - runtime: Runtime.JAVA_11, + runtime: Runtime.JAVA_21, memorySize: 1536, timeout: Duration.seconds(900), environment: { From c8509fed1bcb0ad24858b3569480b13338bc1c3c Mon Sep 17 00:00:00 2001 From: Tom Forbes Date: Fri, 22 Mar 2024 08:44:17 +0000 Subject: [PATCH 3/3] update snap --- .../__snapshots__/stripe-webhook-endpoints.test.ts.snap | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cdk/lib/__snapshots__/stripe-webhook-endpoints.test.ts.snap b/cdk/lib/__snapshots__/stripe-webhook-endpoints.test.ts.snap index 67c0fb0d4c..f8805063b8 100644 --- a/cdk/lib/__snapshots__/stripe-webhook-endpoints.test.ts.snap +++ b/cdk/lib/__snapshots__/stripe-webhook-endpoints.test.ts.snap @@ -995,7 +995,7 @@ exports[`The StripeWebhookEndpoints stack matches the snapshot 1`] = ` "Arn", ], }, - "Runtime": "java11", + "Runtime": "java21", "Tags": [ { "Key": "App", @@ -1207,7 +1207,7 @@ exports[`The StripeWebhookEndpoints stack matches the snapshot 1`] = ` "Arn", ], }, - "Runtime": "java11", + "Runtime": "java21", "Tags": [ { "Key": "App", @@ -2387,7 +2387,7 @@ exports[`The StripeWebhookEndpoints stack matches the snapshot 2`] = ` "Arn", ], }, - "Runtime": "java11", + "Runtime": "java21", "Tags": [ { "Key": "App", @@ -2599,7 +2599,7 @@ exports[`The StripeWebhookEndpoints stack matches the snapshot 2`] = ` "Arn", ], }, - "Runtime": "java11", + "Runtime": "java21", "Tags": [ { "Key": "App",