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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.