-
Notifications
You must be signed in to change notification settings - Fork 938
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ea225e3
commit f34012a
Showing
1 changed file
with
65 additions
and
48 deletions.
There are no files selected for viewing
113 changes: 65 additions & 48 deletions
113
apigw-lambda-wildcard-resourcebasedpolicy-cdk/example-pattern.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,67 @@ | ||
{ | ||
"title": "Amazon API Gateway to AWS Lambda with wildcard resource-based policy", | ||
"description": "Create a REST API with proxy integration to a Lambda function to keep the size of resource-based policy within the allowed hard limit.", | ||
"language": "Python", | ||
"level": "200", | ||
"framework": "CDK", | ||
"introBox": { | ||
"headline": "How it works", | ||
"text": [ | ||
"Currently, in an API Gateway-Lambda setup whenever an user adds an integration, CDK adds a new policy to the Lambda function's resource-based policy.", | ||
"It might result in exceeding the policy size limit for Lambda function which is 20KB.", | ||
"This sample project demonstrates how to use CDK to create a customized integration that would keep the policy size within limit by using wildcards in the resource-based policy." | ||
] | ||
}, | ||
"gitHub": { | ||
"template": { | ||
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/apigw-lambda-wildcard-resourcebasedpolicy-cdk", | ||
"templateURL": "serverless-patterns/apigw-lambda-wildcard-resourcebasedpolicy-cdk", | ||
"projectFolder": "apigw-lambda-wildcard-resourcebasedpolicy-cdk", | ||
"templateFile": "template.yaml" | ||
} | ||
}, | ||
"resources": { | ||
"bullets": [ | ||
] | ||
}, | ||
"deploy": { | ||
"text": [ | ||
"sam deploy" | ||
] | ||
}, | ||
"testing": { | ||
"text": [ | ||
"See the GitHub repo for detailed testing instructions." | ||
] | ||
}, | ||
"cleanup": { | ||
"text": [ | ||
"Delete the stack: sam delete." | ||
] | ||
}, | ||
"authors": [ | ||
{ | ||
"name": "Saborni Bhattacharya", | ||
"image": "https://drive.google.com/file/d/1AZFquOkafEQRUlrT4hKOtIbt4Cq66SHd/view?usp=sharing", | ||
"bio": "I am Saborni working as a Cloud Engineer at AWS SE Serverless.", | ||
"linkedin": "saborni-bhattacharya-5b523812a" | ||
"title": "Amazon API Gateway to AWS Lambda with wildcard resource-based policy", | ||
"description": "Create a REST API with proxy integration to a Lambda function to keep the size of resource-based policy within the allowed hard limit.", | ||
"language": "Python", | ||
"level": "200", | ||
"framework": "CDK", | ||
"introBox": { | ||
"headline": "How it works", | ||
"text": [ | ||
"Currently, in an API Gateway-Lambda setup whenever an user adds an integration, CDK adds a new policy to the Lambda function's resource-based policy.", | ||
"It might result in exceeding the policy size limit for Lambda function which is 20KB.", | ||
"This sample project demonstrates how to use CDK to create a customized integration that would keep the policy size within limit by using wildcards in the resource-based policy." | ||
] | ||
}, | ||
"gitHub": { | ||
"template": { | ||
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/apigw-lambda-wildcard-resourcebasedpolicy-cdk", | ||
"templateURL": "serverless-patterns/apigw-lambda-wildcard-resourcebasedpolicy-cdk", | ||
"projectFolder": "apigw-lambda-wildcard-resourcebasedpolicy-cdk", | ||
"templateFile": "template.yaml" | ||
} | ||
}, | ||
"resources": { | ||
"bullets": [] | ||
}, | ||
"deploy": { | ||
"text": [ | ||
"sam deploy" | ||
] | ||
}, | ||
"testing": { | ||
"text": [ | ||
"See the GitHub repo for detailed testing instructions." | ||
] | ||
}, | ||
"cleanup": { | ||
"text": [ | ||
"Delete the stack: sam delete." | ||
] | ||
}, | ||
"authors": [ | ||
{ | ||
"name": "Saborni Bhattacharya", | ||
"image": "https://drive.google.com/file/d/1AZFquOkafEQRUlrT4hKOtIbt4Cq66SHd/view?usp=sharing", | ||
"bio": "I am Saborni working as a Cloud Engineer at AWS SE Serverless.", | ||
"linkedin": "saborni-bhattacharya-5b523812a" | ||
} | ||
] | ||
} | ||
], | ||
"patternArch": { | ||
"icon1": { | ||
"x": 20, | ||
"y": 50, | ||
"service": "apigw", | ||
"label": "API Gateway REST API" | ||
}, | ||
"icon2": { | ||
"x": 80, | ||
"y": 50, | ||
"service": "lambda", | ||
"label": "AWS Lambda" | ||
}, | ||
"line1": { | ||
"from": "icon1", | ||
"to": "icon2" | ||
} | ||
} | ||
} |