From d1e666c9f42a6d01da1463b58a70a7aa2f097b23 Mon Sep 17 00:00:00 2001 From: Jake He Date: Tue, 7 May 2024 14:31:02 -0700 Subject: [PATCH] Upgrade runtimes --- aws-mwaa-environment/.rpdk-config | 2 +- aws-mwaa-environment/template.yml | 4 ++-- buildspec.yml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/aws-mwaa-environment/.rpdk-config b/aws-mwaa-environment/.rpdk-config index 0253076..c446fe1 100644 --- a/aws-mwaa-environment/.rpdk-config +++ b/aws-mwaa-environment/.rpdk-config @@ -1,7 +1,7 @@ { "typeName": "AWS::MWAA::Environment", "language": "java", - "runtime": "java8", + "runtime": "java17", "entrypoint": "software.amazon.mwaa.environment.HandlerWrapper::handleRequest", "testEntrypoint": "software.amazon.mwaa.environment.HandlerWrapper::handleRequest", "executableEntrypoint": "software.amazon.mwaa.environment.HandlerWrapperExecutable", diff --git a/aws-mwaa-environment/template.yml b/aws-mwaa-environment/template.yml index afa3164..e7f085c 100644 --- a/aws-mwaa-environment/template.yml +++ b/aws-mwaa-environment/template.yml @@ -12,13 +12,13 @@ Resources: Type: AWS::Serverless::Function Properties: Handler: software.amazon.mwaa.environment.HandlerWrapper::handleRequest - Runtime: java8 + Runtime: java17 CodeUri: ./target/aws-mwaa-environment-1.0.jar TestEntrypoint: Type: AWS::Serverless::Function Properties: Handler: software.amazon.mwaa.environment.HandlerWrapper::testEntrypoint - Runtime: java8 + Runtime: java17 CodeUri: ./target/aws-mwaa-environment-1.0.jar diff --git a/buildspec.yml b/buildspec.yml index 6c427dd..2475320 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -2,8 +2,8 @@ version: 0.2 phases: install: runtime-versions: - java: openjdk8 - python: 3.7 + java: corretto17 + python: 3.11 commands: - pip install pre-commit cloudformation-cli-java-plugin build: