Skip to content
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

Ability to override Lambda architecture #1820

Open
otottkovacstibor opened this issue Aug 4, 2024 · 2 comments · May be fixed by #1935
Open

Ability to override Lambda architecture #1820

otottkovacstibor opened this issue Aug 4, 2024 · 2 comments · May be fixed by #1935
Labels
feature-request New feature or request function Issue pertaining to Amplify Function

Comments

@otottkovacstibor
Copy link

Environment information

System:
  OS: macOS 14.5
  CPU: (12) arm64 Apple M3 Pro
  Memory: 164.98 MB / 18.00 GB
  Shell: /bin/zsh
Binaries:
  Node: 20.15.1 - ~/.nvm/versions/node/v20.15.1/bin/node
  Yarn: undefined - undefined
  npm: 10.7.0 - ~/.nvm/versions/node/v20.15.1/bin/npm
  pnpm: undefined - undefined
NPM Packages:
  @aws-amplify/auth-construct: 1.2.0
  @aws-amplify/backend: 1.0.4
  @aws-amplify/backend-auth: 1.1.0
  @aws-amplify/backend-cli: 1.2.1
  @aws-amplify/backend-data: 1.1.0
  @aws-amplify/backend-deployer: 1.0.2
  @aws-amplify/backend-function: 1.3.0
  @aws-amplify/backend-output-schemas: 1.1.0
  @aws-amplify/backend-output-storage: 1.0.2
  @aws-amplify/backend-secret: 1.0.0
  @aws-amplify/backend-storage: 1.0.4
  @aws-amplify/cli-core: 1.1.1
  @aws-amplify/client-config: 1.1.1
  @aws-amplify/deployed-backend-client: 1.1.0
  @aws-amplify/form-generator: 1.0.0
  @aws-amplify/model-generator: 1.0.2
  @aws-amplify/platform-core: 1.0.3
  @aws-amplify/plugin-types: 1.1.0
  @aws-amplify/sandbox: 1.1.1
  @aws-amplify/schema-generator: 1.2.0
  aws-amplify: 6.4.3
  aws-cdk: 2.150.0
  aws-cdk-lib: 2.150.0
  typescript: 5.5.4
AWS environment variables:
  AWS_STS_REGIONAL_ENDPOINTS = regional
  AWS_NODEJS_CONNECTION_REUSE_ENABLED = 1
  AWS_SDK_LOAD_CONFIG = 1
No CDK environment variables

Description

I'd like to use architecture arm64 instead of the default x86_64 for my data function resolvers.

It would be great to use something like this:

export const myFunction = defineFunction({ runtime: 20, architecture: 'arm64' });
@otottkovacstibor otottkovacstibor added the pending-triage Incoming issues that need categorization label Aug 4, 2024
@ykethan
Copy link
Member

ykethan commented Aug 6, 2024

Hey @otottkovacstibor, 👋 thanks for raising this! Marking this as feature request for further evaluation.

@ykethan ykethan added feature-request New feature or request needs-product-input Needs non-technical requirements or direction to proceed function Issue pertaining to Amplify Function and removed pending-triage Incoming issues that need categorization labels Aug 6, 2024
@ykethan
Copy link
Member

ykethan commented Aug 29, 2024

note: you can set the architecture of the function by overriding the value

backend.myApiFunction.resources.cfnResources.cfnFunction.architectures = [
  "arm64",
];

@josefaidt josefaidt linked a pull request Sep 26, 2024 that will close this issue
4 tasks
@josefaidt josefaidt removed the needs-product-input Needs non-technical requirements or direction to proceed label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request function Issue pertaining to Amplify Function
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants