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

❗️NOTICE (lambda): SnapStart for Java functions using ARM64 #30899

Closed
Leo10Gama opened this issue Jul 19, 2024 · 4 comments · Fixed by #30898 or rwlxxvii/containers#185 · May be fixed by gitafolabi/kreuzlaker#2, NOUIY/aws-solutions-constructs#113 or NOUIY/aws-solutions-constructs#114
Labels
@aws-cdk/aws-lambda Related to AWS Lambda effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2

Comments

@Leo10Gama
Copy link
Member

Leo10Gama commented Jul 19, 2024

Describe the feature

The new feature is currently being worked on in this PR. In the meantime, you can access the SnapStart feature using the following workaround:

    const fn = new lambda.Function(this, 'Func', {
      runtime: lambda.Runtime.JAVA_21,
      handler: 'example.Handler',
      architecture: lambda.Architecture.ARM_64,
      code: lambda.Code.fromAsset(path.join(__dirname, '../../lambda/example.jar')),
      memorySize: 256,
    });

    // Workaround: Add SnapStart configuration like this:
    (fn.node.defaultChild as lambda.CfnFunction).addPropertyOverride('SnapStart', {
      ApplyOn: 'PublishedVersions',
    });

CDK version used

2.149.0

Environment details (OS name and version, etc.)

All

@Leo10Gama Leo10Gama added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Jul 19, 2024
@github-actions github-actions bot added the @aws-cdk/aws-lambda Related to AWS Lambda label Jul 19, 2024
@Leo10Gama Leo10Gama pinned this issue Jul 19, 2024
@Leo10Gama Leo10Gama changed the title (lambda): support SnapStart for Java functions using ARM64 ❗️NOTICE (lambda): support SnapStart for Java functions using ARM64 Jul 19, 2024
@Leo10Gama Leo10Gama changed the title ❗️NOTICE (lambda): support SnapStart for Java functions using ARM64 ❗️NOTICE (lambda): SnapStart for Java functions using ARM64 Jul 19, 2024
@Leo10Gama Leo10Gama unpinned this issue Jul 19, 2024
@Leo10Gama Leo10Gama pinned this issue Jul 19, 2024
@ashishdhingra ashishdhingra added p2 effort/medium Medium work item – several days of effort and removed needs-triage This issue or PR still needs to be triaged. labels Jul 19, 2024
@ashishdhingra
Copy link
Contributor

PR #30898 pending review.

@mergify mergify bot closed this as completed in #30898 Jul 19, 2024
@mergify mergify bot closed this as completed in b4377a5 Jul 19, 2024
Copy link

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

1 similar comment
Copy link

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

obraafo pushed a commit to obraafo/aws-cdk that referenced this issue Jul 25, 2024
### Issue # (if applicable)

Closes aws#30899.

### Reason for this change

Lambda released SnapStart support for arm64 functions: https://aws.amazon.com/about-aws/whats-new/2024/07/aws-lambda-snapstart-java-functions-arm64-architecture/



### Description of changes

Allow configuring SnapStart on arm64 functions.



### Description of how you validated changes



```yarn test```

### Checklist
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
@aws-cdk-automation
Copy link
Collaborator

Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one.

@aws aws locked as resolved and limited conversation to collaborators Jul 25, 2024
@colifran colifran unpinned this issue Aug 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.