[{"data":1,"prerenderedAt":70},["ShallowReactive",2],{"pattern-apigw-lambda-bedrock-nova-terraform":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":11,"deploy":13,"description":18,"extension":19,"framework":20,"gitHub":21,"highlight":6,"introBox":26,"language":31,"level":32,"meta":33,"patternArch":34,"resources":52,"s3URL":6,"services":6,"stem":63,"testing":64,"videoId":6,"__hash__":69},"patterns\u002Fpatterns\u002Fapigw-lambda-bedrock-nova-terraform.json","Serverless Generative AI with Amazon Bedrock Nova Micro",null,{"text":8},[9,10],"\u003Ccode>terraform destroy\u003Ccode>","\u003Ccode>terraform show\u003Ccode>",[12],"content\u002Fcontributors\u002Fnaresh-rajaram.json",{"text":14},[15,16,17],"terraform init","terraform plan","terraform apply","This pattern demonstrates how to create a serverless API leveraging Amazon Bedrock Nova Micro through AWS Lambda.","json","Terraform",{"template":22},{"repoURL":23,"templateURL":24,"projectFolder":24,"templateFile":25},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-lambda-bedrock-nova-terraform","apigw-lambda-bedrock-nova-terraform","main.tf",{"headline":27,"text":28},"How it works",[29,30],"An Amazon API Gateway REST endpoint accepts POST requests containing prompts. These requests are automatically routed to an AWS Lambda function, which processes the input and interacts with Amazon Bedrock Nova Micro.","The Lambda function formats the request according to the model's requirements, invokes the model, and returns the generated response through API Gateway. This serverless architecture ensures scalability and cost-effectiveness, as you only pay for actual API calls and compute time.","Python","200",{},{"icon1":35,"icon2":40,"icon3":43,"line1":47,"line2":50},{"x":36,"y":37,"service":38,"label":39},20,50,"apigw","API Gateway REST API",{"x":37,"y":37,"service":41,"label":42},"lambda","AWS Lambda",{"x":44,"y":37,"service":45,"label":46},80,"bedrock","Amazon Bedrock",{"from":48,"to":49},"icon1","icon2",{"from":49,"to":51},"icon3",{"bullets":53},[54,57,60],{"text":55,"link":56},"Amazon API Gateway REST APIs","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fwelcome.html",{"text":58,"link":59},"AWS Lambda Function Integration","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fgetting-started-with-lambda-integration.html",{"text":61,"link":62},"Amazon Bedrock Nova Models","https:\u002F\u002Fdocs.aws.amazon.com\u002Fbedrock\u002Flatest\u002Fuserguide\u002Fmodel-parameters-nova.html","patterns\u002Fapigw-lambda-bedrock-nova-terraform",{"text":65},[66,67,68],"Test the API endpoint using curl:","\u003Ccode>curl -X POST -H \"Content-Type: application\u002Fjson\" -d '{\"prompt\": \"What are the key benefits of using AWS services?\"}' https:\u002F\u002FYOUR-API-ENDPOINT\u002Fdev\u002Fgenerate_content\u003Ccode>","","gmacOWVshL9wf43LogjFchZlyRH8-H5Cc_OBZyJB8DY",1778846882071]