📝 Student Lab Guide

Part 1: Local Project Setup

Step 1.1: Create your local project folder

  1. Open your terminal.
  2. Create a new directory named devops-static-site and navigate into it.

Step 1.2: Add your website code

  1. Create a subfolder named src.
  2. Inside src, create two files: index.html (your main homepage) and error.html (your fallback page).
  3. Write standard HTML5 boilerplate code inside both files so they display simple text when loaded in a browser.

Step 1.3: Initialize Git & Push to GitHub

  1. Initialize your local directory as a git repository using main as the default branch.
  2. Stage and commit your files locally.
  3. Go to GitHub, create a new empty repository named devops-static-site. Do not add a README or .gitignore on GitHub.
  4. Link your local repository to your GitHub remote endpoint and push your main branch.

Part 2: Provisioning Secure AWS Infrastructure

Step 2.1: Create a Private Amazon S3 Bucket

  1. Log in to the AWS Management Console.
  2. Navigate to the S3 dashboard and click Create bucket.
  3. Configure the following settings:
  4. Create the bucket.