feat: Add .NET implementation of Lambda S3 Files mount pattern#3164
feat: Add .NET implementation of Lambda S3 Files mount pattern#3164PankajRawat333 wants to merge 3 commits into
Conversation
Add a new serverless pattern that deploys a .NET 10 Lambda function with an Amazon S3 Files file system mounted at /mnt/s3data. The function performs standard file operations (read, write, list) using the local filesystem without S3 API calls. Uses isolated VPC subnets with an S3 Gateway VPC endpoint instead of a NAT gateway for a more cost-effective design.
df4f2cd to
a009547
Compare
| ``` | ||
|
|
||
| ---- | ||
| Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| After deployment, invoke the Lambda function with different payloads to test file operations: | ||
|
|
||
| ### Write a file | ||
|
|
There was a problem hiding this comment.
Add instruction that user needs to be update FunctionName from the deployment output.
There was a problem hiding this comment.
fixed, added in the beginning
| ``` | ||
|
|
||
| ### Read a file | ||
|
|
There was a problem hiding this comment.
Add instruction that user needs to be update FunctionName from the deployment output.
There was a problem hiding this comment.
fixed, added in the beginning
| ``` | ||
|
|
||
| ### List files | ||
|
|
There was a problem hiding this comment.
Add instruction that user needs to be update FunctionName from the deployment output.
There was a problem hiding this comment.
fixed, added in the beginning
| {"status":"listed","path":"/mnt/s3data","count":1,"entries":[{"name":"hello.txt","type":"file"}]} | ||
| ``` | ||
|
|
||
| Replace `<FunctionName>` with the value from the `FunctionName` output of the CloudFormation stack. |
There was a problem hiding this comment.
Alternatively, this instruction can to the beginning, so that user know what they need to do before executing the command.
There was a problem hiding this comment.
fixed, added in the beginning
- Update copyright year from 2024 to 2026 - Move FunctionName replacement instruction to beginning of Testing section so users know what to substitute before running commands
Add a new serverless pattern that deploys a .NET 10 Lambda function with an Amazon S3 Files file system mounted at /mnt/s3data. The function performs standard file operations (read, write, list) using the local filesystem without S3 API calls.
Uses isolated VPC subnets with an S3 Gateway VPC endpoint.
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.