Skip to content

feat: Add .NET implementation of Lambda S3 Files mount pattern#3164

Open
PankajRawat333 wants to merge 3 commits into
aws-samples:mainfrom
PankajRawat333:pankajrw-feature-lambda-s3-files-cdk-dotnet
Open

feat: Add .NET implementation of Lambda S3 Files mount pattern#3164
PankajRawat333 wants to merge 3 commits into
aws-samples:mainfrom
PankajRawat333:pankajrw-feature-lambda-s3-files-cdk-dotnet

Conversation

@PankajRawat333

Copy link
Copy Markdown
Contributor

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.

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.
@PankajRawat333 PankajRawat333 force-pushed the pankajrw-feature-lambda-s3-files-cdk-dotnet branch from df4f2cd to a009547 Compare June 21, 2026 14:08
Comment thread lambda-s3-files-cdk-dotnet/README.md Outdated
```

----
Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

After deployment, invoke the Lambda function with different payloads to test file operations:

### Write a file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add instruction that user needs to be update FunctionName from the deployment output.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed, added in the beginning

```

### Read a file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add instruction that user needs to be update FunctionName from the deployment output.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed, added in the beginning

```

### List files

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add instruction that user needs to be update FunctionName from the deployment output.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed, added in the beginning

Comment thread lambda-s3-files-cdk-dotnet/README.md Outdated
{"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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively, this instruction can to the beginning, so that user know what they need to do before executing the command.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants