Enquire Now

Thanks for the like! We're thrilled you enjoyed the article. Your support encourages us to keep sharing great content!

Cloud

Aws - S3 Services - Configuration Steps 

Part II | Part III | Part I

S3 (Amazon Simple Storage Service)Features :

  • Scalable Storage: AWS S3 buckets provide virtually unlimited storage capacity for objects (files) of any type and size.

  • Global Accessibility: Data stored in S3 buckets can be accessed from anywhere via the internet using APIs or the AWS Management Console.

  • Durability and Availability: S3 offers 99.999999999% (11 nines) durability and 99.99% availability, ensuring data is highly protected and accessible.

  • Security Features: Supports encryption (SSE-S3, SSE-KMS, SSE-C), bucket policies, and access control lists (ACLs) to secure data.

  • Versioning: Enables version control for objects, allowing recovery of previous versions if needed.

  • Lifecycle Management: Automates data transitions between storage classes (e.g., S3 Standard to S3 Glacier) and deletion for cost optimization.

  • Static Website Hosting: S3 buckets can host static websites with low latency and high availability.

  • Event Notifications: Triggers notifications or workflows using AWS Lambda, SNS, or SQS when objects are added, modified, or deleted.

  • Data Transfer Acceleration: Speeds up data transfers using CloudFront’s edge locations.

  • Cost-Effective: Pay only for the storage and features you use, with no upfront costs.

  • Integration: Seamlessly integrates with other AWS services like EC2, Lambda, CloudFront, and Redshift for advanced workflows.

Step 1 : Log in to your AWS Management Console.

  • On the home page or top search bar, type "S3" in the search field.
  • Select Amazon S3 from the drop-down options or click on the S3 service under the "Storage" category.

Step 2 :Create S3 Bucket

The "Create S3 Bucket" option in AWS allows you to set up a new storage container in Amazon S3, where you can store and manage your data. By creating a bucket, you define its unique name, choose a region for storage, and configure various settings such as access permissions and versioning. Buckets act as the foundation for organizing and securing your data in the cloud, making it easy to upload, download, and manage files. Enter Bucketname 

Step 3: ACL Enable/disable

ACL Enable/disable Option : The ACL (Access Control List) option in AWS S3 allows you to manage permissions for your S3 buckets and objects. When enabled, it provides fine-grained control over who can access your resources and what actions they can perform (e.g., read, write). You can enable or disable ACLs for specific objects or buckets to customize access levels for different users or AWS accounts.

  • Enable ACL: Grants specific access rights to users or groups (e.g., public or private access).
  • Disable ACL: Restricts manual access control, relying on bucket policies and IAM roles for access management.

Step 4 : Bucket version 

Bucket version : Bucket versioning in AWS S3 is a feature that allows you to preserve, retrieve, and restore every version of an object stored in a bucket. When enabled, each time an object is modified or deleted, a new version is created, allowing you to track changes over time and recover previous versions of files. This is particularly useful for data protection, auditing, and rollback purposes.

Step 5 :Default Encryption

Default Encryption : Default Encryption on AWS S3 automatically encrypts all objects uploaded to a bucket. When enabled, it ensures that any new data stored in the bucket is encrypted using a selected encryption method (such as Amazon S3-managed keys (SSE-S3), AWS Key Management Service keys (SSE-KMS), or a customer-provided key). This feature helps secure data at rest and simplifies encryption management by automatically applying encryption without the need for manual intervention.

Step 6 : Click Create Bucket

Click Create Bucket : The "Create S3 Bucket" option in AWS allows you to set up a new storage container in Amazon S3, where you can store and manage your data.

Step 7 : Upload Files 

Upload Files : The Upload Files option in AWS S3 allows you to easily upload files from your local system to a specific S3 bucket. You can drag and drop files or select them manually, and the upload process can include options like setting permissions, configuring storage class, and enabling encryption. Once uploaded, the files become accessible via S3, where you can manage, download, or share them as needed.

AWS S3 (Amazon Simple Storage Service) Bucket Configuration in CLI Mode

Step 1: Install AWS CLI (Command Line Instrface)on Ubuntu 

Update your package list

sudo apt update

Install the AWS CLI

sudo apt install awscli

Verify the installation

aws --version

Step 2 : Configure AWS CLI

Run the configuration command

aws configure

 Here Enter your AWS credentials:

  • AWS Access Key ID: Your access key.

  • AWS Secret Access Key: Your secret key.

  • Default region name: The region where your S3 bucket is located (e.g., ap-south-1).

  • Default output format: Leave as json or set to your preference.

Step 3: Create or Identify Your S3 Bucket

If you don’t already have an S3 bucket, create one:

aws s3 mb s3://your-bucket-name

Verify the bucket exists

aws s3 ls

Step 4: Upload a File to the S3 Bucket

Navigate to the directory containing the file you want to upload

cd /path/to/your/file

Upload the file to the S3 bucket:

aws s3 cp your-file.txt s3://your-bucket-name/

 - replace your-file.txt with the name of your file and your-bucket-name with your S3 bucket name.

Step 5: Verify the Upload

List the contents of your S3 bucket to confirm the file was uploaded

aws s3 ls s3://your-bucket-name/

Step 6 : Sync a Directory to (S3 Optional)

If you want to upload an entire directory, use the sync command

aws s3 sync /path/to/your/folder s3://your-bucket-name/

 

Sridhar S

Author

Sridhar S

Server Admin - Chadura Tech Pvt Ltd

Related Posts

Comments (0)