Thanks for pointing this out Dmitry Vakarev, when you make the deployment or use any AWS CLI commands you need to have the proper AWS IAM permissions to do so otherwise you will be blocked.
I’m happy you got it working, thanks again for sharing!
Hey KUNCHERIA KURUVILLA, thanks for pointing this issue out. It’s a really common concern. We’ve found luck handling routes and deep linking by setting both the index document and the error document to
index.html. This way if someone goes to a route that’s unknown AWS S3 will then redirect them back to your
index.htmlpage which should then route them…
Hey Edward, we really appreciate you leaving this comment to help others get past the new changes made by AWS for S3. We added a section to cover the change you mentioned!
Thank you for helping keep the content up to date 😃
Hey Joben, thank you for giving us an update on that command. You’re totally right, the default for AWS S3 is to keep it private so without that
--acl public-read flag we wouldn’t be able to view the page.
We updated the article to reflect this!
Thank you for the contribution 😃
Hey Jon, if I’m understanding the question correctly, we are able to do client routing by using React Router. Then we have two settings in S3 when configuring Static Web hosting for home page and error page which we set both to
index.html . Then everything works as it would normally and users are able to navigate to different routes and should be…
Hey Tim, thanks for the feedback 😃! We typically have our environment variables in a .env file (e.g.
create-react-scriptswill swap the value out during the build. However, even though this will make it difficult to find what that placeholder equals if someone was determined they could still get that value. In cases where…
Hey Nathan, I was able to do what I think you’re suggesting in the start of the second part of this article. Here is the GitHub link, https://github.com/serverless-guru/real-time-weather/tree/master.
The website for that code which is running live on an S3 Bucket is here…