Skip to content

Commit

Permalink
Use golang:1 as the build Go image
Browse files Browse the repository at this point in the history
So we're tracking the latest 1.x Go version, like we were when
we were using public.ecr.aws/sam/build-go1.x:latest.
  • Loading branch information
SamStephens committed Dec 14, 2023
1 parent 09cffd1 commit dceb7c0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lambda/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion test/lambda/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit dceb7c0

Please sign in to comment.