"Unlocking Data Storage Strategies"
Ankit Kumar
Aspiring Cloud & DevOps Engineer | Python | C/C++ | FastAPI | Docker | Terraform.
Before Reading this Session please read the previous session. Let's begin the world of cloud computing using Amazon web services...
Data that we need to keep permanent in our device for that we need HARDDISK or PENDRIVES. We can't keep data permanent on top of RAM.
Certainly! Here's a simplified explanation of storage types and related concepts:
There are three storage types available in the market...
- Block Storage: Used for storing data in blocks and requires creating partitions, formatting, and creating drives for data storage. Commonly used for OS installations and raw data storage.
- File Storage: Involves creating folders to organize and store files. Without folders, it's impossible to create files. It's a traditional file system approach for data organization.
- Object Storage: Offers a service-oriented approach where data is stored as objects and accessed using HTTP protocols. Examples include Google Cloud's object storage (Google Drive) and AWS S3.
Google Cloud Object Storage (Google Drive):
- Provides a service where users can upload and download files without managing storage directly. Files are stored as objects, and access is through HTTP protocols.
AWS S3 (Simple Storage Service):
- AWS cloud also offers object storage similar to Google Drive, known as S3. It allows users to store and retrieve data objects using HTTP protocols.
If you want to install any OS on your system you need RAW HARD DISK.
- Provides block storage that functions like a raw hard disk, allowing users to create, attach, and manage volumes for EC2 instances.
- Offers persistent storage that persists even after instance termination, making it suitable for OS installations and data storage requiring block-level access.
- EBS volumes can be resized and backed up for data protection and scalability.
- Offers file storage that enables users to create scalable file systems and mount them on multiple EC2 instances simultaneously.
- Supports NFS (Network File System) protocol, allowing seamless file sharing and access across instances within the same VPC.
- Ideal for applications and workloads that require shared file systems and scalable storage capacity.
Enter the size you want (Minimum size 1Gi Band MAximum is 16384Gib). AWS will charge you per your Gib.
To use this hard disk you need to connect to the OS. Whenever you launch OS by default in AWS hard disk is created.
Click on Attach volume
Select the OS.
You can see the Storage attached with fdisk -l command.
领英推荐
To create a partition you have to go inside the hard disk with fdisk /dev/xvdf.
Type n for the new partition
type p for primary partition
partition number 1
command to specify the Size +100M
Type w this command will save the partition
if you want to remove it,
Click on Force detach to remove the hard disk...
S3 bucket
An S3 bucket is a storage container provided by Amazon Web Services (AWS) for storing objects, such as files, images, videos, and backups, in the cloud. It acts as a scalable and durable storage solution that can be accessed securely over the internet using HTTP or HTTPS protocols.
Create an S3 bucket in AWS, follow these steps:
1. Sign in to AWS Console:
- Go to the AWS Management Console and sign in to your AWS account.
2. Navigate to S3 Service:
- In the AWS Management Console, search for "S3" or find it under the "Storage" section.
3. Create a Bucket:
- Click on "Create bucket" to start creating a new S3 bucket.
4. Configure Bucket Settings:
- Provide a unique name for your bucket (bucket names must be globally unique across AWS), such as "my-example-bucket."
- Choose the AWS region where you want to create the bucket.
- Configure other settings like versioning, logging, and encryption as per your requirements. You can also set permissions for the bucket.
5. Review and Create:
- Review your bucket configuration settings to ensure they are correct.
- Click on "Create bucket" to create your S3 bucket.
6. Access and Manage Your Bucket:
- Once the bucket is created, you can access and manage it from the S3 dashboard.
- Upload, download, and manage objects (files, images, videos, etc.) within your S3 bucket as needed.
By following these steps, you can successfully create an S3 bucket in AWS for storing and managing your data in the cloud.
Stay tuned for our next session, where we'll continue our journey into the vast world of cloud computing!
Software Engineer | Android development | Flutter | Java | Kotlin | SQL | XML
11 个月Helpful buddy ????
Aspiring Software Engineer with a Passion for Problem Solving | DevOps, MLOps & AI Enthusiast | Exploring Multicloud & MERN Stack | Committed to Machine Learning & Coding Mastery | Tech Content Creator | Cricket Lover
11 个月Great Ankit Kumar