How to do it...

  1. Create a CodeCommit repository CP-StaticApp and put the source code file in the repository:
  1. Create an S3 bucket cp-statapp in the same region where you created the CodeCommit repository. We have to enable Versioning and Static website hosting:
  1. The static website can be enabled by going to the Properties:
  1. Post that, we need to apply bucket policy by going to the Permission section of the bucket and click on bucket policy ...

Get AWS Automation Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.