Table of contents
- What is an S3 bucket?
- What is a pre-signed URL in an S3 bucket in AWS?
- Step- by-step in creating S3 bucket
- a. creating a folder b. uploading a file
- creating a pre-signed URLs
An S3 bucket in AWS (Amazon Web Services) is a logical container for storing objects (files, data, and metadata) in Amazon Simple Storage Service (Amazon S3). It serves as the foundational storage unit in AWS and allows you to store, retrieve, and manage data in a scalable, secure, and cost-effective manner.
A pre-signed URL in the context of an AWS S3 bucket usually refers to a pre-signed URL. A pre-signed URL allows users to access a specific object in an S3 bucket without requiring direct permissions to the bucket.
This is particularly useful when you want to grant temporary, secure access to a private object in S3 for downloading or uploading purposes.
Step by step in creating S3 bucket
*sign up/log in to AWS Console:
Go to AWS Management Console.
*In the search bar, type "S3" and select S3 from the services list.
- Provide Bucket Name: Enter a unique bucket name (e.g., adexbucket).
- Select Region: Choose the AWS region where the bucket will be created (e.g., US West 2 *Configure Settings: Leave Block Public Access settings as is (enabled by default).
*Disable Versioning .You can Enable Versioning as well when you want to keep multiple versions of objects to protect against accidental overwrites, deletions, or data loss.
- Add tag :In adding tag, key is the "name" while value "crown"
*For Encryption and other setting ,leave as default
- Create bucket Scroll down and click Create bucket.
*Successfully created bucket. Click on bucket to open
4a. creating folders
click create a folder to store file, videos, pictures etc
- Give the folder a name(adexfolder) and select create folder
- create a folder for videos and pictures using the same steps
*Successfully created folders for different purposes
b. uploading file
open the September picture folder and click on upload
*Click Add file and select the picture then click upload to upload the selected picture
- Successful uploaded to September picture
- open the October video folder and click on upload
- Successful uploaded to October video folder
- Creating pre - signed URLs
- Open the image file Uploaded to September-pictures.
- Click Object actions at the top right.
- In the drop down select Share with a presigned URL.
Set the Number of minutes or hours you want the presigned URL to
last for. Setting to 45 minutes.Click Create presigned URL.
- Successfully created presigned URL
- Paste the URL in a browser to test it .
- Repeat the same for October video. Open the video file folder for October video
- Click Object actions at the top right.
- In the drop down select Share with a presigned URL.
- Successfully created presigned URL
- Paste the URL in a browser to test it .
Top comments (0)