diff --git a/lambda/Dockerfile b/lambda/Dockerfile index 3ee85b43..1e6c581d 100644 --- a/lambda/Dockerfile +++ b/lambda/Dockerfile @@ -1,6 +1,6 @@ # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 -ARG buildImage=golang:1.21 +ARG buildImage=golang:1 FROM ${buildImage} as build USER root diff --git a/src/index.ts b/src/index.ts index becc5012..388ed888 100644 --- a/src/index.ts +++ b/src/index.ts @@ -139,7 +139,7 @@ export class ECRDeployment extends Construct { const memoryLimit = props.memoryLimit ?? 512; this.handler = new lambda.SingletonFunction(this, 'CustomResourceHandler', { uuid: this.renderSingletonUuid(memoryLimit), - code: getCode(props.buildImage ?? 'golang:1.21'), + code: getCode(props.buildImage ?? 'golang:1'), runtime: lambda.Runtime.PROVIDED_AL2023, handler: 'bootstrap', environment: props.environment, diff --git a/test/lambda/Dockerfile b/test/lambda/Dockerfile index f87f4a67..51fa4752 100644 --- a/test/lambda/Dockerfile +++ b/test/lambda/Dockerfile @@ -1,6 +1,6 @@ # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 -ARG buildImage=golang:1.21 +ARG buildImage=golang:1 FROM ${buildImage} as build USER root