Introduction
Amazon Web Services (AWS) Simple Storage Service (S3) is a scalable object storage service that is used for a variety of purposes, such as application data storage, static website hosting, and content delivery. One of S3's main features is the ability to produce pre-signed URLs, which allow secure access to your objects without revealing your access credentials. This article will walk you through the steps of creating an S3 bucket and generating a pre-signed URL.
Simple illustration to understand what S3 is in AWS.
Imagine a giant online locker.
Think of S3 to be a large online storage system for storing images, movies, documents, and other types of digital data. Instead of physical items, you store digital files. Amazon Web Services (AWS) hosts this locker on the internet, allowing you to access it from anywhere worldwide as long as you have the correct key.
Before you begin, make sure your AWS account is active.
Step 1: Create an S3 Bucket
- Login to your AWS management console
- On the search buttons write S3 and click search
- Enter a unique bucket name (e.g., "kosi-storage") and on the top right corner choose the AWS region that is nearest to your users.
- Bucket Versioning
Note: This is equivalent to keeping a backup of any changes you make to your data. If you mistakenly edit or delete something, you can recover the previous versions.
For the sake of the tutorial we choose click on disable
- Default Encryption
Encryption is similar to using a password to lock your files. This option ensures that all of your files are automatically locked, preventing unauthorized users from accessing and using them.
- Bucket Key
This is an efficient approach to save money and time when locking and unlocking files (encryption). It works by minimizing the number of times AWS has to check the "key" for the lock.
- We have successfully created a bucket. Next, click on the newly created bucket. Instead of uploading directly, start by creating a folder to organize the files into the appropriate location before uploading them.
- Name the folder "kosinachi docs" and scroll down to click on Create folder to save it.
- Folder successfully created
- Click on Add files
- File uploaded successfully
- Click on Object actions in the top-right corner.
In the dropdown menu, select Share with a pre-signed URL
A pre-signed URL for “1732515321622.jpg” has been created and copied to your clipboard.
This article is simple and straightforward, showing us how to create an S3 Bucket in AWS and generate a Pre-Signed URL for it. You can apply this process to any other files you’ve uploaded.
Conclusion
Creating an S3 bucket and generating pre-signed URLs on AWS is a straightforward and effective way to securely share things. This functionality offers temporary, secure access to your S3 resources. By following the steps shown above, you may effectively manage your S3 storage and securely share data.
SOCIAL SHARE CARD GENERATOR