Skip to content

Commit fb20a87

Browse files
authored
Add final pattern file
1 parent e4464d7 commit fb20a87

1 file changed

Lines changed: 80 additions & 0 deletions

File tree

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{
2+
"title": "AWS Lambda with Amazon S3 Files Mount",
3+
"description": "Mount an Amazon S3 bucket as a local file system on AWS Lambda using Amazon S3 Files, enabling standard file operations (read, write, list) without downloading objects.",
4+
"language": "TypeScript",
5+
"level": "300",
6+
"framework": "AWS CDK",
7+
"introBox": {
8+
"headline": "How it works",
9+
"text": [
10+
"This pattern deploys a Lambda function with an Amazon S3 Files file system mounted at /mnt/s3data. The function performs standard file operations (read, write, list) on S3 data using the local filesystem — no S3 API calls needed.",
11+
"S3 Files provides NFS access to S3 buckets with sub-millisecond latency on small files and full POSIX semantics. The pattern creates a VPC, S3 Files file system, mount targets, access point, and a Lambda function wired together.",
12+
"Multiple Lambda functions can connect to the same S3 Files file system simultaneously, sharing data through a common workspace without custom synchronization logic."
13+
]
14+
},
15+
"gitHub": {
16+
"template": {
17+
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/lambda-s3-files-cdk",
18+
"templateURL": "serverless-patterns/lambda-s3-files-cdk",
19+
"projectFolder": "lambda-s3-files-cdk",
20+
"templateFile": "lib/lambda-s3-files-stack.ts"
21+
}
22+
},
23+
"resources": {
24+
"bullets": [
25+
{
26+
"text": "Amazon S3 Files Documentation",
27+
"link": "https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-files.html"
28+
},
29+
{
30+
"text": "Configuring Amazon S3 Files access for Lambda",
31+
"link": "https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem-s3files.html"
32+
},
33+
{
34+
"text": "Mounting S3 file systems on Lambda functions",
35+
"link": "https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-files-mounting-lambda.html"
36+
}
37+
]
38+
},
39+
"deploy": {
40+
"text": [
41+
"cdk deploy"
42+
]
43+
},
44+
"testing": {
45+
"text": [
46+
"See the GitHub repo for detailed testing instructions."
47+
]
48+
},
49+
"cleanup": {
50+
"text": [
51+
"Delete the stack: <code>cdk destroy</code>."
52+
]
53+
},
54+
"authors": [
55+
{
56+
"name": "Nithin Chandran R",
57+
"bio": "Technical Account Manager at AWS",
58+
"linkedin": "nithin-chandran-r"
59+
}
60+
],
61+
"patternArch": {
62+
"icon1": {
63+
"x": 20,
64+
"y": 50,
65+
"service": "lambda",
66+
"label": "AWS Lambda"
67+
},
68+
"icon2": {
69+
"x": 80,
70+
"y": 50,
71+
"service": "s3",
72+
"label": "Amazon S3 Files"
73+
},
74+
"line1": {
75+
"from": "icon1",
76+
"to": "icon2",
77+
"label": "read/write"
78+
}
79+
}
80+
}

0 commit comments

Comments
 (0)