Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mikeirvingweb/s3bucketexperiments

C# Functionality for Interacting with an S3 Bucket, as part of a Camera Video Files system.
https://github.com/mikeirvingweb/s3bucketexperiments

Last synced: about 9 hours ago
JSON representation

C# Functionality for Interacting with an S3 Bucket, as part of a Camera Video Files system.

Awesome Lists containing this project

README

        

# S3 Bucket Experiments in C#
📹 C# Functionality for performing various S3 Bucket Functions and downloading their recording files.

Created alongside the [Camera Experiments](https://github.com/mikeirvingweb/CameraExperiments) repo.

## How to use

✏️ Modify *Program.cs* to suit your setup.

`bucketName` - your bucket name.
`uploadFolder` - a folder within your bucket.
`localFilePath` - where your local fiels reside.

🎯 Call any of the contained functions:
`Files.UploadAllFilesInFolder` - Upload Files in a Folder.
`Files.UploadAllFilesInAllFolders` - Traverses sub folders.
`Files.CreateFileListAsJSON` - Create a JSON File List.
`S3.UploadObjectFromFileAsync` - Upload from a File.
`S3.UploadObjectFromStringAsync` - Create a file from a string.
`S3.ListingObjectsAsync` - List Objects in Bucket or Folder.
`S3.CopyObjectAsync` - Copy an Object.
`S3.DeleteObjectAsync` - Delete an Object.
`S3.MoveObjectAsync` - Copy then Delete an Object.

## 🪟 Windows

To execute, simply run `S3BucketExperiments.exe`.

## 🐧 Linux

To run, you will need AWS Credentials in place, i.e. in `~/.aws/credentials`

You will need to add execute permissions on the the main executable.

`chmod +x S3BucketExperiments`

Then to execute, run:

`sudo ./S3BucketExperiments`

### Contributions

🍴 Feel free to Fork / Branch / Modify, raise any Pull Requests for changes.

#### Further reading

🦔 Built as part of [.NET, IoT and Hedgehogs!](https://www.mike-irving.co.uk/web-design-blog/?blogid=122)