Skip to content

Commit

Permalink
Create apigw-lambda-wildcard-resourcebasedpolicy-cdk.json
Browse files Browse the repository at this point in the history
  • Loading branch information
cornelcroi authored Jan 23, 2024
1 parent f2c7c33 commit 192085e
Showing 1 changed file with 67 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +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"
}
],
"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"
}
}
}

0 comments on commit 192085e

Please sign in to comment.