Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

feat(aws-lambda): support architecture #3032

Merged
merged 4 commits into from
Mar 2, 2022
Merged

feat(aws-lambda): support architecture #3032

merged 4 commits into from
Mar 2, 2022

Conversation

thiskevinwang
Copy link
Contributor

@thiskevinwang thiskevinwang commented Feb 17, 2022

Description

This adds an optional architecture field (x86_64 | arm64) to aws-lambda to support setting architecture on lambda creation and update.


Short term option for #3026

@@ -47,6 +47,7 @@ bin/entrypoint: # create the entrypoint for the current platform

.PHONY: install
install: bin # build and copy binaries to $GOPATH/bin/waypoint
rm $(GOPATH)/bin/waypoint
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rming the binary first fixed an error I was running into:

Λ  $GOPATH/bin/waypoint docs
[1]    74270 killed     $GOPATH/bin/waypoint docs

@@ -11,7 +11,7 @@ require (
github.com/DataDog/opencensus-go-exporter-datadog v0.0.0-20210527074920-9baf37265e83
github.com/adrg/xdg v0.2.1
github.com/armon/circbuf v0.0.0-20190214190532-5111143e8da2
github.com/aws/aws-sdk-go v1.36.31
github.com/aws/aws-sdk-go v1.43.0
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lambda Architectures seemed to have been introduced in 1.41.0

Copy link
Member

@briancain briancain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't tried this, but the code makes sense to me providing an option to set the architecture for a lambda 👍🏻

builtin/aws/lambda/platform.go Outdated Show resolved Hide resolved
builtin/aws/lambda/platform.go Outdated Show resolved Hide resolved
thiskevinwang and others added 4 commits March 1, 2022 17:30
Co-authored-by: Brian Cain <bcain@hashicorp.com>
Co-authored-by: Brian Cain <bcain@hashicorp.com>
@evanphx evanphx merged commit 2dc72a6 into main Mar 2, 2022
@evanphx evanphx deleted the kw/lambda-arm64 branch March 2, 2022 17:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants