Skip to content

Project demonstrates how to create a go api that uses aws s3 sdk to upload and delete files from AWS.

Notifications You must be signed in to change notification settings

Sean-Miningah/s3BucketWithGo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Upload File to A S3 bucket using PresingedURLS in Go

This repository contains a simple rest api that uploads files to an s3 bucket and delete files files from an s3 bucket

Read More about this project here

Prerequisites

Must have an access key and access secret key from AWS assinged to a user with the appropriate permission for the s3 bucket.

Usage

Clone the repository

git clone https://github.com/Sean-Miningah/s3BucketWithGo.git

Create .env file in the root and populate it with configurations in this format

AWS_BUCKET_NAME="<bucket-name-here>"
AWS_REGION="<aws-region-here>"
AWS_S3_BUCKET_ACCESS_KEY="<aws-bucket-access-key-here>"
AWS_S3_BUCKET_SECRET_ACCESS_KEY="<aws-bucket-secret-key-here>"

Run the Server

To run the server, execute the go run command

go run main.go

About

Project demonstrates how to create a go api that uses aws s3 sdk to upload and delete files from AWS.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages