[{"data":1,"prerenderedAt":68},["ShallowReactive",2],{"pattern-apigw-lambda-s3-terraform-java":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":11,"deploy":13,"description":18,"extension":19,"framework":20,"gitHub":21,"highlight":6,"introBox":27,"language":33,"level":34,"meta":35,"patternArch":36,"resources":55,"s3URL":6,"services":6,"stem":63,"testing":64,"videoId":6,"__hash__":67},"patterns\u002Fpatterns\u002Fapigw-lambda-s3-terraform-java.json","Upload file to Amazon S3 bucket using presigned URL",null,{"text":8},[9,10],"Delete the Amazon S3 bucket content: \u003Ccode>aws s3 rm s3:\u002F\u002F{MyS3BucketName} --recursive\u003C\u002Fcode>","Delete the stack: \u003Ccode>terraform destroy\u003C\u002Fcode>.",[12],"content\u002Fcontributors\u002Fjing-xiang-peh.json",{"text":14},[15,16,17],"mvn clean package","terraform init","terraform apply","Amazon API Gateway with AWS Lambda integration to showcase how to upload a file up to 5GB to Amazon S3 bucket using a presigned S3 URL.","json","Terraform",{"template":22},{"repoURL":23,"templateURL":24,"projectFolder":25,"templateFile":26},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-lambda-s3-terraform-java","serverless-patterns\u002Fapigw-lambda-s3-terraform-java","apigw-lambda-s3-terraform-java","main.tf",{"headline":28,"text":29},"How it works",[30,31,32],"Amazon API Gateway receives the HTTP POST request containing the file name to be uploaded","AWS Lambda is triggered by the API Gateway, this java based function generates Amazon S3 presigned URL.","A Java program is used to upload a file to the Amazon S3 bucket using the presigned URL","Java","200",{},{"icon1":37,"icon2":42,"icon3":45,"line1":49,"line2":53},{"x":38,"y":39,"service":40,"label":41},20,50,"apigw","Amazon API Gateway",{"x":39,"y":39,"service":43,"label":44},"lambda","AWS Lambda",{"x":46,"y":39,"service":47,"label":48},80,"s3","Amazon S3 Bucket",{"from":50,"to":51,"label":52},"icon1","icon2","",{"from":51,"to":54,"label":52},"icon3",{"bullets":56},[57,60],{"text":58,"link":59},"Create a presigned URL for Amazon S3 using an AWS SDK","https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Fexample_s3_Scenario_PresignedUrl_section.html",{"text":61,"link":62},"Uploading objects with presigned URLs","https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002FPresignedUrlUploadObject.html","patterns\u002Fapigw-lambda-s3-terraform-java",{"text":65},[66],"See the GitHub repo for detailed testing instructions.","alNR2wXpP19eOmEKJqanwhm48xAV9lL2YYms0u6GeZQ",1779273332695]