Skip to main content

Command Palette

Search for a command to run...

๐Ÿš€ Day 03 โ€“ Creating My First S3 Bucket Using AWS CLI & Terraform

Today in the #30DaysOfAWSTerraform challenge, I focused on AWS CLI authentication and the basics of . This was a simple but impor

Published
โ€ข2 min read
N

Iโ€™m a Cloud & DevOps Engineer passionate about building reliable, scalable, and automated cloud infrastructures. I work extensively with AWS, Kubernetes, Terraform, Docker, and CI/CD pipelines to deliver production-ready environments.

My journey started in technical troubleshooting, where I gained strong root-cause analysis and system diagnostic skills. Transitioning into cloud engineering, I have built 3-tier microservices architectures, automated VPCs using Terraform, and containerized legacy applications for performance and portability.

I enjoy solving real-world problems, optimizing cloud cost and performance, and creating automated workflows that reduce manual effort. Iโ€™m continuously learning and applying best practices in DevOps, IaC, and cloud security.

Core Skills: AWS โ€ข Kubernetes โ€ข Docker โ€ข Terraform โ€ข CI/CD โ€ข Linux โ€ข Networking โ€ข Monitoring โ€ข Automation โ€ข Troubleshooting

Looking For: Cloud Engineer | DevOps Engineer | SRE (Junior/Mid-level) roles where I can build, automate, and scale cloud workloads.

๐Ÿ”น 1. AWS CLI Authentication

Before using Terraform, AWS CLI must be set up.
I used the following command:

aws configure

This asked for:

  • AWS Access Key

  • AWS Secret Key

  • Default Region (ap-south-1 for me)

  • Output Format (json)

Once done, I verified the login using:

aws sts get-caller-identity

If the credentials are correct, AWS returns:

  • Account ID

  • User ARN

  • AWS IAM Identity

This means the CLI is authenticated successfully.

aws configure
video : https://youtu.be/dZgLNL869YU?si=9VnhOkd82Xs4lesd


๐Ÿ”น 2. Creating an S3 Bucket (Hands-on)

In Day 03 video, the main focus was on creating a sample S3 bucket.

I practiced using both AWS CLI and Terraform.

S3 Bucket via AWS CLI

aws s3api create-bucket \
  --bucket nazeer-terraform-day03 \
  --region ap-south-1 \
  --create-bucket-configuration LocationConstraint=ap-south-1

This instantly created the bucket.


๐Ÿ”น 3. Creating S3 Bucket via Terraform (Concept Review)

Although I already built this in Day 01, todayโ€™s focus was understanding how Terraform interacts with AWS once CLI credentials are configured.

Sample Terraform resource:

resource "aws_s3_bucket" "demo" {
  bucket = "nazeer-terraform-day03"
}

Run:

terraform init
terraform plan
terraform apply

Now Terraform talks to AWS securely because AWS CLI is configured.


๐Ÿ”น 4. What I Understood Today

  • Terraform needs AWS CLI configuration before creating resources

  • S3 bucket creation is one of the simplest and most common demos

  • Using both CLI and Terraform helps understand how AWS APIs work

  • The flow for Terraform & AWS is straightforward:

  •     AWS CLI Configure โ†’ Terraform Init โ†’ Plan โ†’ Apply
    

๐Ÿ“บ Day 03 Video (Embed Here Later)

https://youtu.be/09HQ_R1P7Lw?si=UM7eZCUy2m9KwtKs


๐Ÿง  My Day 03 Takeaways

  • AWS CLI configuration is an essential step before using Terraform

  • Creating resources manually (CLI) helps understand what Terraform automates

  • S3 bucket creation is the best beginner-friendly demo

  • Feeling more confident as the basics are now clear


๐Ÿ”š End

Day 03 was simple, practical, and important for building a strong foundation.
Excited for Day 04! ๐Ÿš€

#30DaysOfAWSTerraform #AWS #Terraform #DevOps #Cloud