Step 1: Download & Prepare Website Files

  1. Go to ThemeWagon and choose a free HTML template to download.
  2. Extract the downloaded .zip file.
  3. Open the folder in your code editor (like VS Code).
  4. Edit the template files to suit your project.

Step 2: Create an S3 Bucket

  1. Go to AWS > S3.
  2. Click Create bucket.
  3. Bucket Name: Must be the same as your domain name (e.g., afunogu.online).
  4. Region: Choose the same AWS region you'll use for CloudFront.
  5. Under Object Ownership, choose ACLs disabled (recommended).
  6. Uncheck "Block all public access."
  7. Under Default encryption, choose Server-side encryption (SSE-S3).
  8. Click Create bucket.

Step 3: Configure Bucket Policy

  1. Click on the bucket you just created.
  2. Go to the Permissions tab.
  3. Scroll down to Bucket policy and click Edit.

Use the policy generator or manually paste the following JSON, replacing your-bucket-name with your actual bucket name:

{