[{"data":1,"prerenderedAt":66},["ShallowReactive",2],{"pattern-s3-lambda-s3-cdk":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":26,"language":33,"level":34,"meta":35,"patternArch":36,"resources":52,"s3URL":6,"services":6,"stem":61,"testing":62,"videoId":6,"__hash__":65},"patterns\u002Fpatterns\u002Fs3-lambda-s3-cdk.json","Amazon S3 to AWS Lambda",null,{"text":8},[9,10,11],"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.",[13],"content\u002Fcontributors\u002Fpayal-shah.json",{"text":15},[16],"cdk deploy --context filename=\u003Csample file name> --context s3bucketname=\u003Cthe name of the s3 bucket> --all","Upload large file to S3 buckets with custom resources.","json","AWS CDK",{"template":21},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"s3-large-deployments-cdk","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fs3-large-deployments-cdk","serverless-patterns\u002Fs3-large-deployments-cdk","s3_large_deployment\u002Fs3_large_deployment_stack.py",{"headline":27,"text":28,"test":32},"How it works",[29,30,31],"The samples in this project demonstrate how to upload large file to S3 Bucket using CDK using the inbuilt CDK Assets Bucket and Custom Resource.","Assets are local files, directories, or Docker images that can be bundled into AWS CDK libraries and apps; for example, a directory that contains the handler code for an AWS Lambda function. Assets can represent any artifact that the app needs to operate. You can define local files and directories as assets, and the AWS CDK packages and uploads them to Amazon S3 through the aws-s3-assets module.","A Lambda Backed Custom Resource can be used to copy your large file from the assets bucket to your custom s3 bucket","","Python","200",{},{"icon1":37,"icon2":42,"icon3":45,"line1":47,"line2":50},{"x":38,"y":39,"service":40,"label":41},20,50,"s3","S3",{"x":39,"y":39,"service":43,"label":44},"lambda","Custom Resource",{"x":46,"y":39,"service":40,"label":41},80,{"from":48,"to":49,"label":32},"icon1","icon2",{"from":49,"to":51,"label":32},"icon3",{"headline":53,"bullets":54},"Additional resources",[55,58],{"text":56,"link":57},"Tutorial: Using AWS Lambda with Amazon S3","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fwith-s3-example.html",{"text":59,"link":60},"Custom resources","https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Ftemplate-custom-resources.html","patterns\u002Fs3-lambda-s3-cdk",{"text":63},[64],"See the GitHub repo for detailed testing instructions.","i6kfh_JFMecdbkxH4IRFzAsv9B4LNFR_3kEiMsGAw2w",1778846887439]