📝 Student Lab Guide
Part 1: Local Project Setup
Step 1.1: Create your local project folder
- Open your terminal.
- Create a new directory named
devops-static-site and navigate into it.
Step 1.2: Add your website code
- Create a subfolder named
src.
- Inside
src, create two files: index.html (your main homepage) and error.html (your fallback page).
- 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
- Initialize your local directory as a git repository using
main as the default branch.
- Stage and commit your files locally.
- Go to GitHub, create a new empty repository named
devops-static-site. Do not add a README or .gitignore on GitHub.
- 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
- Log in to the AWS Management Console.
- Navigate to the S3 dashboard and click Create bucket.
- Configure the following settings:
- Bucket name: Choose a globally unique name.
- AWS Region: Select
us-east-1.
- Public Access Block: Ensure Block all public access remains Checked (enabled). Our bucket must be completely private.
- Create the bucket.