[{"data":1,"prerenderedAt":74},["ShallowReactive",2],{"pattern-serverless-multi-tenant-api":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":13,"description":18,"extension":19,"framework":20,"gitHub":21,"highlight":6,"introBox":27,"language":31,"level":32,"meta":33,"patternArch":34,"resources":61,"s3URL":6,"services":6,"stem":69,"testing":70,"videoId":6,"__hash__":73},"patterns\u002Fpatterns\u002Fserverless-multi-tenant-api.json","Multi-tenant Serverless API",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11,12],"content\u002Fcontributors\u002Fmichael-ohde.json","content\u002Fcontributors\u002Fswapnil-singh.json",{"text":14},[15,16,17],"npm install","sam build","sam deploy","Create a multi-tenant serverless API using Amazon API Gateway, AWS Lambda, and Amazon DynamoDB with tenant based authorization .","json","AWS SAM",{"template":22},{"repoURL":23,"templateURL":24,"projectFolder":25,"templateFile":26},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fserverless-multi-tenant-api","serverless-patterns\u002Fserverless-multi-tenant-api","serverless-multi-tenant-api","template.yaml",{"headline":28,"text":29},"How it works",[30],"In this project, requests are authorized using API keys mapped to tenants in DynamoDB. Access to data is restricted using dynamic IAM policies based on the tenant ID. ","Node.js","200",{},{"icon1":35,"icon4":40,"icon2":45,"icon3":48,"line1":52,"line2":56,"line3":59},{"x":36,"y":37,"service":38,"label":39},20,30,"apigw","API Gateway REST API",{"x":41,"y":42,"service":43,"label":44},49,70,"lambda","AWS Lambda authorizer",{"x":46,"y":37,"service":43,"label":47},52,"AWS Lambda functions",{"x":49,"y":37,"service":50,"label":51},80,"dynamodb","Amazon DynamoDB",{"from":53,"to":54,"label":55},"icon1","icon2","with tenant id",{"from":54,"to":57,"label":58},"icon3","",{"from":53,"to":60,"label":58},"icon4",{"bullets":62},[63,66],{"text":64,"link":65},"Use API Gateway Lambda authorizers","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fapigateway-use-lambda-authorizer.html",{"text":67,"link":68},"Call an API with API Gateway Lambda authorizers","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fcall-api-with-api-gateway-lambda-authorization.html","patterns\u002Fserverless-multi-tenant-api",{"text":71},[72],"See the GitHub repo for detailed testing instructions.","ZOu2XDyiARNTdWQ0jJp73_kCJBZikYnOQq6PkNNEmCw",1778846887698]