-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add support to specify CPU architecture for the to-be-copied image #961
base: main
Are you sure you want to change the base?
Conversation
Head branch was pushed to by a user without write access
src/index.ts
Outdated
/** | ||
* The image architecture to be copied. | ||
* | ||
* @default - "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please explain what this default means in the doc string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
* | ||
* @default - "" | ||
*/ | ||
readonly imageArch?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd probably lean towards this. What do you think?
readonly imageArch?: string; | |
readonly architecture?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
imageArch
is intentionally used to avoid any potential confusion with the architecture field referenced by lambda.SingletonFunction
in the ECRDeployment
class.
Currently, our Dockerfile uses a hard-coded architecture GOARCH=amd64
. If we'd like to allow customers to control what's used for the lambda function, we can uplift such a constraint and then expose lambdaArch
as a sibling field of imageArch
.
Hope that makes sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See inline comments.
d439861
to
d5cf620
Compare
This PR is meant to add a feature to specify CPU architecture for the to-be-copied image, by triggering the underlying logic here. This will unblock the usage of Graviton instances for Amazon SageMaker and other computing platforms.