Category: S3
-
Create a pre-signed upload url for AWS S3 using Golang
Hi everyone, This is just a quick post on how to create a pre-signed upload url for AWS S3 using Golang. The generate the presigned url, you’ll need something like the following: Note that we’re using godotenv to load AWS environment variables containing a few AWS keys. You can get godotenv by running the following:…
-
Upload an Image to S3 Using Post and a Presigned Url
Hi everyone, Today I’ve been converting my “PUT” upload to S3 to a “POST”. The main motivator for this was to restrict the file size of uploads using a signed policy. Unfortunately this was a pretty tedious process and the error responses from S3 were very vague. Thankfully it’s working now and here’s what I…
-
AWS CLI Copy from Bucket – An error occurred (AccessDenied) when calling the CopyObject operation: Access Denied
Hi everyone, I ran into the following error while trying to copy files from one bucket to another using the AWS CLI: An error occurred (AccessDenied) when calling the CopyObject operation: Access Denied Thankfully this one is pretty self-explanatory. My user was missing the permissions required to view the bucket. To see your user: aws…