Step 1: Download & Prepare Website Files
- Go to ThemeWagon and choose a free HTML template to download.
- Extract the downloaded .zip file.
- Open the folder in your code editor (like VS Code).
- Edit the template files to suit your project.
Step 2: Create an S3 Bucket
- Go to AWS > S3.
- Click Create bucket.
- Bucket Name: Must be the same as your domain name (e.g., afunogu.online).
- Region: Choose the same AWS region you'll use for CloudFront.
- Under Object Ownership, choose ACLs disabled (recommended).
- Uncheck "Block all public access."
- Under Default encryption, choose Server-side encryption (SSE-S3).
- Click Create bucket.
Step 3: Configure Bucket Policy
- Click on the bucket you just created.
- Go to the Permissions tab.
- 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:
{