[{"data":1,"prerenderedAt":66},["ShallowReactive",2],{"pattern-lambda-microvm-s3files":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":16,"extension":17,"framework":18,"gitHub":19,"highlight":6,"introBox":25,"language":31,"level":32,"meta":33,"patternArch":34,"resources":51,"s3URL":6,"services":6,"stem":61,"testing":62,"videoId":6,"__hash__":65},"patterns\u002Fpatterns\u002Flambda-microvm-s3files.json","AWS Lambda MicroVMs with Amazon S3 Files",null,{"text":8},[9],"see the README Cleanup section",[11],"content\u002Fcontributors\u002Fben-freiberg.json",{"text":13},[14,15],".\u002Fsrc\u002Frun.sh package \u003Cartifact-bucket>","sam deploy --guided","Mount an Amazon S3 bucket as a POSIX file system inside a Lambda MicroVM, reachable over NFS through a VPC egress network connector.","json","AWS SAM",{"template":20},{"repoURL":21,"templateURL":22,"projectFolder":23,"templateFile":24},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Flambda-microvm-s3files","serverless-patterns\u002Flambda-microvm-s3files","lambda-microvm-s3files","template.yaml",{"headline":26,"text":27},"How it works",[28,29,30],"This pattern runs a containerized application inside an AWS Lambda MicroVM — a Firecracker-isolated, snapshot-resumable serverless compute environment — and mounts an Amazon S3 bucket as a local POSIX file system using Amazon S3 Files (NFS 4.2). The application reads and writes files on a mount path and S3 Files synchronizes changes to and from the bucket in both directions, with no GetObject\u002FPutObject plumbing in the code.","Because the file system lives in your VPC (not on a public endpoint), the MicroVM reaches the mount target over a VPC egress network connector that provisions elastic network interfaces. The mount itself happens at run time inside the MicroVM's \u002Frun lifecycle hook — the network path and execution-role credentials only exist once the MicroVM is running, so they cannot be baked into the image snapshot.","CloudFormation provisions the data bucket, the S3 Files file system, mount target, and access point, the VPC egress connector, all IAM roles, and the MicroVM image (AWS::Lambda::MicrovmImage). The MicroVM itself is launched afterwards with the included run.sh helper, since RunMicrovm is a runtime API rather than a CloudFormation resource.","Python","300",{},{"icon1":35,"icon2":40,"icon3":43,"line1":46,"line2":49},{"x":36,"y":37,"service":38,"label":39},20,50,"lambda","AWS Lambda MicroVM",{"x":37,"y":37,"service":41,"label":42},"s3","Amazon S3 Files",{"x":44,"y":37,"service":41,"label":45},80,"Amazon S3 Bucket",{"from":47,"to":48},"icon1","icon2",{"from":48,"to":50},"icon3",{"bullets":52},[53,56,58],{"text":54,"link":55},"AWS Lambda MicroVMs","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002F",{"text":42,"link":57},"https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Fs3-files.html",{"text":59,"link":60},"AWS::Lambda::MicrovmImage CloudFormation resource","https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FTemplateReference\u002Faws-resource-lambda-microvmimage.html","patterns\u002Flambda-microvm-s3files",{"text":63},[64],"See the README for full testing instructions (run.sh run \u002F run.sh prove).","_oYpba1NdN_48o-f7UcyhOh3igZJwwa0wGgN1BKcYJE",1784543722452]