---
title: "Discussion on \"Host and Deploy a React Static Website on AWS\" | Hashnode"
description: "Discussion on \"Host and Deploy a React Static Website on AWS\". Learn how to host and deploy a React static website on AWS using services like S3, CloudFront, and CloudFormation. Enhance your web application performance."
url: "https://hashnode.com/posts/host-and-deploy-a-react-static-website-on-aws/644fbbe0f95634766e2ab1da"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Host and Deploy a React Static Website on AWS](https://beyondcode.hashnode.dev/host-and-deploy-a-react-static-website-on-aws?utm_source=hashnode&utm_medium=feed)

Learn how to host and deploy a React static website on AWS using services like S3, CloudFront, and CloudFormation. Enhance your web application performance.

May 1, 2023 · 12 min read · beyondcode.hashnode.dev  
Updated May 11, 2023  
Read the article

-   [#aws](https://hashnode.com/tag/aws)
-   [#cloudformation](https://hashnode.com/tag/cloudformation)
-   [#aws-cloudfront](https://hashnode.com/tag/aws-cloudfront)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#s3](https://hashnode.com/tag/s3)

## Written by

[Samuel Umoren](https://hashnode.com/@umoren)

@umoren · Port Harcourt, Nigeria

  
[View profile](https://hashnode.com/@umoren)

Software Engineer

I am a software developer and technical writer. As an experienced technical writer, I enjoy crafting clear, concise content that helps users comprehend complex technology, tools, and products. Using words, illustrations, and examples, I aim to make technical information accessible and easily understood. I'm driven by my passion for continuous learning and development, always striving to hone my skills and expand my knowledge.

## Responses 1

Markdown supported · ⌘↵ to post

[De Pan](https://hashnode.com/@Esotericpath)

[May 11, 2023](https://hashnode.com/posts/host-and-deploy-a-react-static-website-on-aws/644fbbe0f95634766e2ab1da/comment/645d5c91b518077697da92fc)

I am trying to use this and I am getting error with the could formation stack deployment I am getting the following error

> > aws cloudformation create-stack --stack-name StaticSiteStack --template-body file://my-static-website.yaml

An error occurred (ValidationError) when calling the CreateStack operation: Invalid template resource property 'PublicAccessBlockConfiguration'

[Samuel Umoren](https://hashnode.com/@umoren)

[May 11, 2023](https://hashnode.com/posts/host-and-deploy-a-react-static-website-on-aws/644fbbe0f95634766e2ab1da/comment/645d5c91b518077697da92fc#reply-645d612eb518077697da9379)

Hi [De Pan](https://hashnode.com/@Esotericpath), Validation errors are caused because the CloudFormation template validator sees the bucket resource as a section-level specification. So this might be a formatting issue. Use this YAML template instead: [github.com/Umoren/S3ReactStaticWebsite/blob/maste…](https://github.com/Umoren/S3ReactStaticWebsite/blob/master/s3-public-bucket.yaml)

Please confirm if this resolves your problem...
