Skip to content

kbrashears5/net-standard-aws-s3-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Net Standard AWS S3 Helper

Collection of helper functions for interacting with the AWS S3 service

Build Status Tests Code Coverage

nuget nuget

Usage

Default - running in Lambda in your own account

var logger = new ConsoleLogger(logLevel: LogLevel.Information);

var helper = new S3Helper(logger: logger);

await helper.CreateBucketAsync(name: "bucket-name");

Running in separate account or not in Lambda

var logger = new ConsoleLogger(logLevel: LogLevel.Information);

var options = new AmazonS3Config()
{
    RegionEndpoint = RegionEndpoint.USEast1
};

var repository = new AmazonS3Client(config: options);

var helper = new S3Helper(logger: logger);

await helper.CreateBucketAsync(name: "bucket-name");

Notes

If no options are supplied, will default to us-east-1 as the region