Make Your React Application Secure With AWS
4 min readOct 31, 2020
Security is very important for websites nowadays. Customers don’t feel confident to provide their information on an unsecured website. If you have a React app served over S3 you can secure it very easily using AWS service.
If you have an application that is hosted on S3 Bucket in AWS( Which a popular choice for react applications) and want to serve your app over HTTPS then this article is for you.
Today we will use 2 services provided by AWS. CloudFront and ACM.
Let’s get Started. . .
STEP 1: Get a certificate from ACM
- First, we need a certificate from ACM (Amazon Certificate Manager)
- We will apply for a new certificate, The certificate must be from the North Virginia region (us-east-1) as CloudFront doesn’t support other regions yet.
- Along the way, we will select the option to request a public certificate
- In domain names, we will add our desired domain names. It is advised to add domain names with www and another without www. ( For example ecommerce.rokkhi.com and www.ecommerce.rokkhi.com )
- We will select DNS validation ( We can also opt for email verification . However if we select DNS we need to verify that we are the owner of the domain from…