Skip to content

Commit 775f6df

Browse files
committed
Update Top Picks patterns to Java 25
1 parent 541a34b commit 775f6df

File tree

5 files changed

+83
-94
lines changed

5 files changed

+83
-94
lines changed

apigw-rest-api-lambda-java/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Resources:
1717
Properties:
1818
CodeUri: HelloWorldFunction
1919
Handler: helloworld.App::handleRequest
20-
Runtime: java21
20+
Runtime: java25
2121
Architectures:
2222
- x86_64
2323
Environment: # More info about Env Vars: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#environment-object
Lines changed: 79 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,82 @@
11
{
2-
"title": "EventBridge API Destinations with OAuth credentials using CMK encryption",
3-
"description": "Create an EventBridge rule and API Destination with OAuth credentials using Customer Managed Key (CMK) encryption",
4-
"language": "Node.js",
5-
"level": "100",
6-
"framework": "AWS SAM",
7-
"services": {
8-
"from": "eventbridge",
9-
"to": "eventbridge"
10-
},
11-
"introBox": {
12-
"headline": "How it works",
13-
"text": [
14-
"This pattern configures an EventBridge rule that routes to an API Destinations target using Oauth credentials with Customer Managed Key (CMK) encryption. It configures a Connection, which contains the authorization for the API endpoint with CMK encryption, and the API, which contains the URL, http method, and other configuration information."
15-
],
16-
"test": ""
17-
},
18-
"deploy": {
19-
"text": [
20-
"cd ./12-oauth-api-cmk-encryption",
21-
"sam deploy --guided"
22-
]
23-
},
24-
"testing": {
25-
"headline": "Testing",
26-
"text": [
27-
"1. From a command line in this directory, send a test event to EventBridge simulating a \"EventBridge CMK Demo success\" event: <code>aws events put-events --entries file://testEvent.json</code>"
28-
]
29-
},
30-
"cleanup": {
31-
"headline": "Cleanup",
32-
"text": [
33-
"1. Delete the stack: <code>sam delete --stack-name STACK_NAME</code>.",
34-
"2. Confirm the stack has been deleted: <code>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"</code>"
35-
]
36-
},
37-
"gitHub": {
38-
"template": {
39-
"projectFolder": "eventbridge-api-destinations",
40-
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/eventbridge-api-destinations/12-oauth-api-cmk-encryption",
41-
"templateURL": "serverless-patterns/eventbridge-api-destinations",
42-
"templateFile": "12-oauth-api-cmk-encryption/template.yaml"
43-
},
44-
"payloads": [
45-
{
46-
"headline": "",
47-
"payloadURL": ""
48-
}
49-
]
50-
},
51-
"resources": {
52-
"headline": "Additional resources",
53-
"bullets": [
54-
{
55-
"text": "Amazon EventBridge now supports Customer Managed Keys (CMK) in API destinations connections",
56-
"link": "https://aws.amazon.com/about-aws/whats-new/2025/04/amazon-eventbridge-customer-managed-keys-api/"
57-
},
58-
{
59-
"text": "Encrypting EventBridge connection authorization with AWS KMS keys",
60-
"link": "https://docs.aws.amazon.com/eventbridge/latest/userguide/encryption-connections.html"
61-
},
62-
{
63-
"text": "Using API destinations with Amazon EventBridge",
64-
"link": "https://aws.amazon.com/blogs/compute/using-api-destinations-with-amazon-eventbridge/"
65-
},
66-
{
67-
"text": "Use Amazon EventBridge to Build Decoupled, Event-Driven Architectures",
68-
"link": "https://serverlessland.com/learn/eventbridge"
69-
}
70-
]
71-
},
72-
"authors": [
73-
{
74-
"name": "Rajesh Kumar",
75-
"image": "https://avatars.githubusercontent.com/u/4745639",
76-
"bio": "Rajesh Kumar is a Technical Account Manager (TAM) at Amazon Web Services (AWS) and contributor to ServerlessLand. He is passionate about serverless and wants to help everyone get started with serverless and what can be done with it.",
77-
"linkedin": "rajeshk1988"
78-
},
79-
{
80-
"name": "Biswanath Mukherjee",
81-
"image": "https://d1rwvjey2iif32.cloudfront.net",
82-
"bio": "I am a Sr. Solutions Architect working at AWS India.",
83-
"linkedin": "biswanathmukherjee"
84-
}
2+
"title": "Amazon EventBridge API Destinations with OAuth credentials using CMK encryption",
3+
"description": "Create an Amazon EventBridge rule and API Destination with OAuth credentials using Customer Managed Key (CMK) encryption",
4+
"language": "Node.js",
5+
"level": "100",
6+
"framework": "AWS SAM",
7+
"introBox": {
8+
"headline": "How it works",
9+
"text": [
10+
"This pattern configures an Amazon EventBridge rule that routes to an API Destinations target using Oauth credentials with Customer Managed Key (CMK) encryption. It configures a Connection, which contains the authorization for the API endpoint with CMK encryption, and the API, which contains the URL, http method, and other configuration information."
8511
],
86-
"tags": [
87-
"EventBridge",
88-
"API Destinations",
89-
"OAuth",
90-
"CMK Encryption",
91-
"Serverless"
12+
"test": ""
13+
},
14+
"deploy": {
15+
"text": [
16+
"cd ./12-oauth-api-with-cmk-encryption",
17+
"sam deploy --guided"
9218
]
93-
}
19+
},
20+
"testing": {
21+
"headline": "Testing",
22+
"text": [
23+
"1. From a command line in this directory, send a test event to EventBridge simulating a \"EventBridge CMK Demo success\" event: <code>aws events put-events --entries file://testEvent.json</code>"
24+
]
25+
},
26+
"cleanup": {
27+
"headline": "Cleanup",
28+
"text": [
29+
"1. Delete the stack: <code>sam delete --stack-name STACK_NAME</code>.",
30+
"2. Confirm the stack has been deleted: <code>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"</code>"
31+
]
32+
},
33+
"gitHub": {
34+
"template": {
35+
"projectFolder": "eventbridge-api-destinations",
36+
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/eventbridge-api-destinations",
37+
"templateURL": "serverless-patterns/eventbridge-api-destinations",
38+
"templateFile": "12-oauth-api-cmk-encryption/template.yaml"
39+
},
40+
"payloads": [
41+
{
42+
"headline": "",
43+
"payloadURL": ""
44+
}
45+
]
46+
},
47+
"resources": {
48+
"headline": "Additional resources",
49+
"bullets": [
50+
{
51+
"text": "Amazon EventBridge now supports Customer Managed Keys (CMK) in API destinations connections",
52+
"link": "https://aws.amazon.com/about-aws/whats-new/2025/04/amazon-eventbridge-customer-managed-keys-api/"
53+
},
54+
{
55+
"text": "Encrypting EventBridge connection authorization with AWS KMS keys",
56+
"link": "https://docs.aws.amazon.com/eventbridge/latest/userguide/encryption-connections.html"
57+
},
58+
{
59+
"text": "Using API destinations with Amazon EventBridge",
60+
"link": "https://aws.amazon.com/blogs/compute/using-api-destinations-with-amazon-eventbridge/"
61+
},
62+
{
63+
"text": "Use Amazon EventBridge to Build Decoupled, Event-Driven Architectures",
64+
"link": "https://serverlessland.com/learn/eventbridge"
65+
}
66+
]
67+
},
68+
"authors": [
69+
{
70+
"name": "Rajesh Kumar",
71+
"image": "https://avatars.githubusercontent.com/u/4745639",
72+
"bio": "Rajesh Kumar is a Technical Account Manager (TAM) at Amazon Web Services (AWS) and contributor to ServerlessLand. He is passionate about serverless and wants to help everyone get started with serverless and what can be done with it.",
73+
"linkedin": "rajeshk1988"
74+
},
75+
{
76+
"name": "Biswanath Mukherjee",
77+
"image": "https://d1rwvjey2iif32.cloudfront.net",
78+
"bio": "I am a Sr. Solutions Architect working at AWS India.",
79+
"linkedin": "biswanathmukherjee"
80+
}
81+
]
82+
}

s3-lambda-resizing-java/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Resources:
2828
Properties:
2929
CodeUri: ResizerFunction
3030
Handler: resizer.App::handleRequest
31-
Runtime: java21
31+
Runtime: java25
3232
Timeout: 30
3333
MemorySize: 1024
3434
AutoPublishAlias: live

sns-lambda-java-sam/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Resources:
1010
Properties:
1111
CodeUri: SNSEventHandlerFunction
1212
Handler: example.SNSEventHandler::handleRequest
13-
Runtime: java21
13+
Runtime: java25
1414
Timeout: 30
1515
MemorySize: 512
1616
Architectures:

sqs-lambda-java-sam/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Resources:
2626
Properties:
2727
CodeUri: ProcessSQSMessageBatchFunction
2828
Handler: ProcessSQSMessageBatch::handleRequest
29-
Runtime: java21
29+
Runtime: java21 5
3030
Timeout: 30
3131
MemorySize: 512
3232
Architectures:

0 commit comments

Comments
 (0)