To create the deployment environment on AWS for a serverless WordPress site you need to create an Amazon S3 bucket to host your serverless WordPress files. This page will walk you through the steps to create an appropriately named bucket and grant the required bucket permissions.
Step 1: Create the Amazon S3 bucket
Log in to AWS and navigate to the Amazon S3 service. The S3 Management Console will load.
Click on Create Bucket
![](https://kirbyvirden.com/wp-content/uploads/2019/07/amazon_s3_create_bucket.jpg)
CRITICAL – the bucket name must match the domain name.
If you are hosting the site at the root domain level (e.g. https://demo.com), then the name of the bucket must be rootdomain.TLD (e.g. demo.com). Ignore “https://”.
If you are hosting the site on a subdomain (e.g. https://test.demo.com), then the name of the S3 bucket must be subdomain.rootdomain.TLD (e.g. test.demo.com)
As an example, here is a screenshot for the name of the bucket used for the subdomain https://demo.kirbyvirden.com
![](https://kirbyvirden.com/wp-content/uploads/2019/07/amazon_s3_bucket_name-1024x695.png)
Click Next
Keep the defaults for Configure options and select Next
![](https://kirbyvirden.com/wp-content/uploads/2019/07/amazon_s3_configure_options-1024x696.png)
Keep defaults on Set Permissions and click Next
![](https://kirbyvirden.com/wp-content/uploads/2019/07/amazon_s3_set_permissions-1-1024x724.png)
Review and select Create bucket
![](https://kirbyvirden.com/wp-content/uploads/2019/07/amazon_s3_review-1024x698.png)
Step 2: Set bucket Properties
Click the Bucket name of the bucket that you just created
![](https://kirbyvirden.com/wp-content/uploads/2019/07/amazon_s3_select_bucket-1024x687.jpg)
Click on the Properties tab when the bucket page loads
![](https://kirbyvirden.com/wp-content/uploads/2019/07/amazon_s3_properties_tab-1024x643.png)
Click on Static website hosting.
Select Use this bucket to host a website.
Enter the index document and error document names. The default suggestions are fine.
![](https://kirbyvirden.com/wp-content/uploads/2019/07/amazon_s3_static_website_hosting.png)
Click Save
Summary
You have now created an Amazon S3 bucket to host your serverless WordPress site. To finish the AWS deployment environment you need to set up Amazon CloudFront and Route 53.
- Set up the deployment environment on AWS
- Set up a local development environment
- Generate and upload your content to AWS