Bump software.amazon.lambda:powertools-cloudformation from 2.2.1 to 2.3.0
Type: Pull Request
State: Merged
Association: Contributor
Comments: 0
(3 months ago)
(3 months ago)
(3 months ago)
by docwho2
dependencies java
Bumps software.amazon.lambda:powertools-cloudformation from 2.2.1 to 2.3.0.
Release notes
Sourced from software.amazon.lambda:powertools-cloudformation's releases.
v2.3.0
Summary
This release introduces Lambda SnapStart priming techniques to both the
powertools-metricsandpowertools-idempotencyutilities, optimizing cold start performance for customers using SnapStart.We've also updated dependencies across the library, with the most notable change being the removal of AWS SDK v1 dependency from the
powertools-tracingutility, aligning with the recent AWS X-Ray SDK update (Release 2.19.0).⭐️ Thanks to
@subhash686for contributing the SnapStart priming techniques!⚡ Lambda SnapStart Priming
SnapStart reduces Lambda cold start times by taking a snapshot of your initialized function and reusing it for subsequent invocations. We can run custom code before the snapshot is taken to initialize code that would otherwise be initialized at runtime. This process is referred to as "priming", and this is achieved using Java runtime hooks from the open source CRaC (Coordinated Restore at Checkpoint) project.
The following example shows how to prime an AWS S3 client:
import org.crac.Core; import org.crac.Resource;import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.lambda.runtime.RequestHandler;import software.amazon.awssdk.services.s3.S3Client;
public class Handler implements RequestHandler<String, String>, Resource {
private final S3Client s3Client = S3Client.create();public Handler() {
Core.getGlobalContext().register(this);
}@Override
public String handleRequest(String input, Context context) {
// Business logic using s3Client
return "Hello SnapStart" + input;
}@Override
public void beforeCheckpoint(org.crac.Context<? extends Resource> context) {
// Will be called before SnapStart takes the snapshot
s3Client.listBuckets();
}@Override
public void afterRestore(org.crac.Context<? extends Resource> context) {
// Reinitialize after restore
}
</tr></table>
... (truncated)
Commits
9725d44chore(ci): bump version to 2.3.074d3e66chore: bump org.assertj:assertj-core from 3.27.3 to 3.27.4 (#2031)ab66f95chore: bump software.amazon.awscdk:aws-cdk-lib from 2.208.0 to 2.210.0 (#2030)877042bchore: bump aws.sdk.version from 2.32.18 to 2.32.19 (#2029)174a19fchore: bump co.elastic.logging:logback-ecs-encoder from 1.6.0 to 1.7.0 (#2028)6c84fb7chore: bump com.github.spotbugs:spotbugs-maven-plugin from 4.8.4.0 to 4.9.3.2...58e09cbchore: bump com.amazonaws:aws-lambda-java-runtime-interface-client (#2026)bed5106chore: bump github/codeql-action from 3.29.7 to 3.29.8 (#2027)ca75f24chore: bump org.crac:crac from 1.4.0 to 1.5.0 (#2025)ee79c20chore: bump aws.sdk.version from 2.32.6 to 2.32.18 (#2024)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Pull Request Statistics
1
1
+1
-1
Package Dependencies
maven
2.2.1 → 2.3.0
Minor
Technical Details
| ID: | 5082135 |
| UUID: | 2742053496 |
| Node ID: | PR_kwDOJJc3uM6jcGp4 |
| Host: | GitHub |
| Repository: | docwho2/java-postgres-lambda-trigger |
| Merge State: | Unknown |