Skip to content

Commit

Permalink
Updated to use amazon linux 2 provided runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorenze Corcuera authored and SwagMuffinMcYoloPants committed Aug 31, 2023
1 parent 081bead commit d64f1de
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lambda/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ RUN go env
COPY . /ws

RUN mkdir -p /asset/ && \
make OUTPUT=/asset/main && \
file /asset/main && \
ls -lh /asset/main
make OUTPUT=/asset/bootstrap && \
file /asset/bootstrap && \
ls -lh /asset/bootstrap
2 changes: 1 addition & 1 deletion lambda/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ifeq ($(GOOS), linux)
endif
endif

BUILDTAGS := exclude_graphdriver_devicemapper exclude_graphdriver_btrfs containers_image_openpgp
BUILDTAGS := exclude_graphdriver_devicemapper exclude_graphdriver_btrfs containers_image_openpgp lambda.norpc
OUTPUT ?= cdk-ecr-deployment-handler

all: test lambda
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ export class ECRDeployment extends Construct {
this.handler = new lambda.SingletonFunction(this, 'CustomResourceHandler', {
uuid: this.renderSingletonUuid(memoryLimit),
code: getCode(props.buildImage ?? 'public.ecr.aws/sam/build-go1.x:latest'),
runtime: lambda.Runtime.GO_1_X,
handler: 'main',
runtime: lambda.Runtime.PROVIDED_AL2,
handler: 'bootstrap',
environment: props.environment,
lambdaPurpose: 'Custom::CDKECRDeployment',
timeout: Duration.minutes(15),
Expand Down

0 comments on commit d64f1de

Please sign in to comment.