-
Notifications
You must be signed in to change notification settings - Fork 969
/
Copy pathpattern.json
53 lines (53 loc) · 2.09 KB
/
pattern.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"title": "Api Gateway to DynamoDB including cache invalidation",
"description": "Create a functionless cache invalidation process",
"language": "TypeScript",
"level": "200",
"framework": "AWS SAM",
"introBox": {
"headline": "How it works",
"text": [
"This sample project demonstrates how to use a functionless cache invalidation process when utilizing API Gateway and DynamoDB as a simple CRUD.",
"By introducing EventBridge to this architecture and enabling DynamoDB Streams, the MODIFY event fired into the Stream can be captured, processed and published to a custom EventBridge by EventBridge Pipes. ",
"Once the event is available on the custom EventBridge, a Rule can consume the event and target the API Gateway with a `Cache-Control: max-age=0` header and correct AWS IAM permissions `execute-api:InvalidateCache` using the Arn method for the Target.",
"Note: This application uses resources that are not eligible for the AWS Free Tier"
]
},
"gitHub": {
"template": {
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/apigw-cache-invalidation-eventbridge",
"templateURL": "serverless-patterns/apigw-cache-invalidation-eventbridge",
"projectFolder": "apigw-cache-invalidation-eventbridge",
"templateFile": "template.yaml"
}
},
"resources": {
"bullets": [
{
"text": "Simple CRUD with API Gateway & DynamboDB",
"link": "https://github.com/aws-samples/serverless-patterns/tree/main/apigw-ddb-openapi-crud"
},
{
"text": "Cache invalidation with EventBridge & EventBridge Pipes",
"link": "https://aws.amazon.com/eventbridge/"
}
]
},
"deploy": {
"text": ["sam deploy --guided"]
},
"testing": {
"text": ["See the GitHub repo for detailed testing instructions."]
},
"cleanup": {
"text": ["sam delete --stack-name STACK_NAME"]
},
"authors": [
{
"name": "Mark White",
"image": "https://avatars.githubusercontent.com/u/8914061?v=4",
"bio": "Principal Engineer at Dunelm",
"linkedin": "mark--white"
}
]
}