---
title: "Comment by De Pan on \"Host and Deploy a React Static Website on AWS\" | Hashnode"
description: "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 --stac"
url: "https://hashnode.com/posts/host-and-deploy-a-react-static-website-on-aws/644fbbe0f95634766e2ab1da/comment/645d5c91b518077697da92fc"
---

[Discussion](https://hashnode.com/posts/host-and-deploy-a-react-static-website-on-aws/644fbbe0f95634766e2ab1da)

Comment [Host and Deploy a React Static Website on AWS](https://hashnode.com/posts/host-and-deploy-a-react-static-website-on-aws/644fbbe0f95634766e2ab1da)

[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...
