How to Create Static Website with a CANVA Design in S3
A simple guide to create a website with Canva and Amazon S3
Published Dec 19, 2024
In this guide, we'll walk you through the steps of creating a static website using your Canva design and hosting it on Amazon S3.
- Open your Canva design that you want to use for the static website.
- Make sure your design is finalized and ready for publication.
- You will need to export your Canva design as HTML code for this process.
- Click on the “More” button in Canva.
- From the options, select Embed.
- You will see an option to copy the HTML embed code. Click the Copy button to copy this HTML code to your clipboard.
- Open Notepad (or any text editor of your choice).
- Paste the HTML code that you copied from Canva into the text editor.
- Save the file as
index.html
(ensure the file extension is .html).
- Go to the AWS Management Console and log in to your account.
- Navigate to S3 (search for S3 in the services search bar).
- Click Create bucket.
- Enter a unique name for your bucket (e.g.,
my-canva-page
), ensuring the name is lowercase. - In the Bucket Settings, disable Block Public Access by unchecking the box.
- Acknowledge the warning that this will make the bucket public.
- Keep other default settings and click Create bucket.
- Open the newly created bucket by clicking its name.
- In the bucket dashboard, click Upload.
- Click Add files and select the
index.html
file you saved earlier. - Click Upload to upload the HTML file into your S3 bucket.
- In the S3 bucket, go to the Properties tab.
- Scroll down to the Static website hosting section.
- Click Edit and select Enable.
- In the Index document field, type
index.html
. - Optionally, set an Error document if you have one (not required for this guide).
- Save the changes by clicking Save changes.
- Navigate to the Permissions tab in your S3 bucket.
- Under Block public access, make sure public access is allowed (which you set earlier).
- Scroll down to Bucket Policy and click Edit.
- Click on the Policy Generator button.
- In the policy generator:
- Select S3 Bucket Policy for the Policy Type.
- Choose Allow for the Effect.
- In the Actions section, select GetObject.
- In the ARN field, enter your bucket ARN (e.g.,
arn:aws:s3:::my-canva-page/*
). - For Principal, enter
*
to allow public access.
- Click Generate Policy and copy the generated policy.
- Paste this policy into the Bucket Policy section of your S3 settings.
- Click Save changes.
- Go back to the Properties tab and scroll down to the Static website hosting section.
- You will see a Bucket website URL (e.g.,
http://my-canva-page.s3-website-us-east-1.amazonaws.com
). - Copy and paste this URL into your browser.
- Your Canva design should now be live as a static website with all the links working properly.
Congratulations! You’ve successfully created a static website using your Canva design and hosted it on Amazon S3. Your website is now publicly accessible, and you can share the URL with others.