[{"data":1,"prerenderedAt":79},["ShallowReactive",2],{"pattern-apigw-http-api-lambda-rds-proxy-terraform":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":18,"extension":19,"framework":20,"gitHub":21,"highlight":6,"introBox":27,"language":33,"level":34,"meta":35,"patternArch":36,"resources":67,"s3URL":6,"services":6,"stem":73,"testing":74,"videoId":6,"__hash__":78},"patterns\u002Fpatterns\u002Fapigw-http-api-lambda-rds-proxy-terraform.json","Amazon API Gateway HTTP API to AWS Lambda to RDS Proxy",null,{"headline":8,"text":9},"Cleanup",[10,11],"1. Delete the stack: \u003Ccode>terraform destroy\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>terraform show\u003C\u002Fcode>",[13],"content\u002Fcontributors\u002Fcarlos-bauer.json",{"text":15},[16,17],"terraform init","terraform apply","Create an HTTP API endpoint that calls a Lambda function to RDS Proxy.","json","Terraform",{"template":22},{"projectFolder":23,"repoURL":24,"templateURL":25,"templateFile":26},"apigw-http-api-lambda-rds-proxy-terraform","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-http-api-lambda-rds-proxy-terraform","serverless-patterns\u002Fapigw-http-api-lambda-rds-proxy-terraform","main.tf",{"headline":28,"text":29},"How it works",[30,31,32],"When an HTTP POST request is sent to the Amazon API Gateway endpoint, the AWS Lambda function is invoked to issue a database query against an RDS proxy endpoint.","The lambda function retrieves a temporary token from IAM to authenticate instead of using native database credentials.","The RDS proxy will then establish a connection to the database, the lambda function will borrow this database connection for the next query\u002Ftransaction.","Python","300",{},{"group1":37,"icon1":43,"icon2":48,"icon3":52,"icon4":56,"line1":60,"line2":63,"line3":65},{"x":38,"y":39,"w":40,"h":41,"label":42},26,15,72,70,"VPC",{"x":44,"y":45,"service":46,"label":47},13,50,"apigw","HTTP API",{"x":49,"y":45,"service":50,"label":51},38,"lambda","AWS Lambda",{"x":53,"y":45,"service":54,"label":55},63,"rds-proxy-instance","RDS proxy instance",{"x":57,"y":45,"service":58,"label":59},88,"aurora","Amazon Aurora",{"from":61,"to":62},"icon1","icon2",{"from":62,"to":64},"icon3",{"from":64,"to":66},"icon4",{"headline":68,"bullets":69},"Additional resources",[70],{"text":71,"link":72},"Storage first integrations","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fbuilding-storage-first-applications-with-http-apis-service-integrations\u002F","patterns\u002Fapigw-http-api-lambda-rds-proxy-terraform",{"headline":75,"text":76},"Testing",[77],"See testing in the README.md file in the repo","yHQHMuCnME4a7oB0NGIoqERZYxw30_ONHdJU8UCBmcM",1780914906380]