[{"data":1,"prerenderedAt":53},["ShallowReactive",2],{"pattern-apigw-lambda-wildcard-resourcebasedpolicy-cdk":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":24,"language":30,"level":31,"meta":32,"patternArch":33,"resources":46,"s3URL":6,"services":6,"stem":48,"testing":49,"videoId":6,"__hash__":52},"patterns\u002Fpatterns\u002Fapigw-lambda-wildcard-resourcebasedpolicy-cdk.json","Amazon API Gateway to AWS Lambda with wildcard resource-based policy",null,{"text":8},[9],"Delete the stack \u003Ccode>sam delete\u003C\u002Fcode>",[11],"content\u002Fcontributors\u002Fsaborni-bhattacharya.json",{"text":13},[14],"sam deploy","Create a REST API with proxy integration to a Lambda function to keep the size of resource-based policy within the allowed hard limit.","json","AWS CDK",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-lambda-wildcard-resourcebasedpolicy-cdk","serverless-patterns\u002Fapigw-lambda-wildcard-resourcebasedpolicy-cdk","apigw-lambda-wildcard-resourcebasedpolicy-cdk","cdk_apigw_lambda_wildcardpolicy_stack\u002Fcdk_apigw_lambda_wildcardpolicy_stack.py",{"headline":25,"text":26},"How it works",[27,28,29],"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.","Python","200",{},{"icon1":34,"icon2":39,"line1":43},{"x":35,"y":36,"service":37,"label":38},25,50,"apigw","Amazon API Gateway REST API",{"x":40,"y":36,"service":41,"label":42},80,"lambda","AWS Lambda",{"from":44,"to":45},"icon1","icon2",{"bullets":47},[],"patterns\u002Fapigw-lambda-wildcard-resourcebasedpolicy-cdk",{"text":50},[51],"See the GitHub repo for detailed testing instructions.","nFrRbiXLifJO19_S3J88zgR2wAgzQt1TCpq9HoPcbBU",1778846882480]