[{"data":1,"prerenderedAt":89},["ShallowReactive",2],{"pattern-apigw-http-api-lambda-rds-proxy-cdk":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":13,"deploy":15,"description":19,"extension":20,"framework":21,"gitHub":22,"highlight":6,"introBox":31,"language":36,"level":37,"meta":38,"patternArch":39,"resources":70,"s3URL":6,"services":82,"stem":83,"testing":84,"videoId":30,"__hash__":88},"patterns\u002Fpatterns\u002Fapigw-http-api-lambda-rds-proxy-cdk.json","Amazon API Gateway HTTP API to AWS Lambda to RDS Proxy",null,{"headline":8,"text":9},"Cleanup",[10,11,12],"1. Delete the stack: \u003Ccode>npx cdk destroy\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>.","3. You see a message confirming DELETE_COMPLETE.",[14],"content\u002Fcontributors\u002Fjesse-goeglein.json",{"text":16},[17,18],"npm install","cdk deploy","Create an HTTP API endpoint that calls a Lambda function to RDS Proxy.","json","AWS CDK",{"template":23,"payloads":28},{"projectFolder":24,"repoURL":25,"templateURL":26,"templateFile":27},"apigw-http-api-lambda-rds-proxy-cdk","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-http-api-lambda-rds-proxy-cdk","serverless-patterns\u002Fapigw-http-api-lambda-rds-proxy-cdk","src\u002Flib\u002Frds-proxy-sequelize-stack.ts",[29],{"headline":30,"payloadURL":30},"",{"headline":32,"text":33},"How it works",[34,35],"This pattern sets up API Gateway HTTP API using AWS Lambda function as an integration which talks to RDS Aurora(Postgres) via RDS Proxy with IAM Authentication enabled.","The Lambda function uses short-lived credentials to authenticate through RDS proxy via IAM authentication using the popular JavaScript ORM sequelize.","TypeScript","300",{},{"group1":40,"icon1":46,"icon2":51,"icon3":55,"icon4":59,"line1":63,"line2":66,"line3":68},{"x":41,"y":42,"w":43,"h":44,"label":45},26,15,72,70,"VPC",{"x":47,"y":48,"service":49,"label":50},13,50,"apigw","HTTP API",{"x":52,"y":48,"service":53,"label":54},38,"lambda","AWS Lambda",{"x":56,"y":48,"service":57,"label":58},63,"rds-proxy-instance","RDS proxy instance",{"x":60,"y":48,"service":61,"label":62},88,"aurora","Amazon Aurora",{"from":64,"to":65},"icon1","icon2",{"from":65,"to":67},"icon3",{"from":67,"to":69},"icon4",{"headline":71,"bullets":72},"Additional resources",[73,76,79],{"text":74,"link":75},"Connecting to a database through RDS Proxy documentation","https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FAuroraUserGuide\u002Frds-proxy-setup.html#rds-proxy-iam-setup",{"text":77,"link":78},"Using RDS Proxy","https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FAuroraUserGuide\u002Frds-proxy.html",{"text":80,"link":81},"Using Amazon RDS Proxy with AWS Lambda","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fusing-amazon-rds-proxy-with-aws-lambda\u002F",{"from":49,"to":53},"patterns\u002Fapigw-http-api-lambda-rds-proxy-cdk",{"headline":85,"text":86},"Testing",[87],"See testing in the README.md file in the repo","jsrQvZHNMuOKnR_6U-OkXZDX-HKvzSSS5o9d01ASK4A",1782297322256]