0
0
AWScloud~30 mins

Buckets and objects concept in AWS - Mini Project: Build & Apply

Choose your learning style9 modes available
Buckets and Objects Concept
📖 Scenario: You are working as a cloud engineer for a small company. Your task is to create a storage bucket and upload files (objects) to it. This will help the company store and organize their documents safely in the cloud.
🎯 Goal: Build a simple AWS S3 bucket and add objects (files) to it using configuration code. This project will teach you how to create buckets and upload objects step-by-step.
📋 What You'll Learn
Create an S3 bucket with a specific name
Add a configuration variable for the bucket region
Upload two objects (files) to the bucket with exact keys and content
Set the bucket to block all public access
💡 Why This Matters
🌍 Real World
Cloud storage buckets are used by companies to store files safely and organize data in the cloud. Blocking public access helps keep data private.
💼 Career
Knowing how to create and configure buckets and objects is a fundamental skill for cloud engineers and DevOps professionals working with AWS.
Progress0 / 4 steps
1
Create an S3 bucket
Create an AWS S3 bucket resource named my_bucket with the bucket name my-company-docs.
AWS
Need a hint?

Use the aws_s3_bucket resource and set the bucket attribute to the exact name.

2
Add a bucket region variable
Create a variable named bucket_region with the default value us-east-1 to specify the AWS region for the bucket.
AWS
Need a hint?

Define a variable block with the name bucket_region and set its default to us-east-1.

3
Upload objects to the bucket
Create two aws_s3_bucket_object resources named doc1 and doc2. Upload files with keys report.txt and summary.txt to the bucket my_bucket. Set the content of report.txt to Annual Report 2024 and summary.txt to Summary of Q1.
AWS
Need a hint?

Use aws_s3_bucket_object resource with bucket set to aws_s3_bucket.my_bucket.bucket. Set key and content exactly as instructed.

4
Block all public access to the bucket
Add a aws_s3_bucket_public_access_block resource named block_public to block all public access on the bucket my_bucket. Set block_public_acls, block_public_policy, ignore_public_acls, and restrict_public_buckets all to true.
AWS
Need a hint?

Use the aws_s3_bucket_public_access_block resource with all four public access block settings set to true.