- Create a CodeCommit repository CP-StaticApp and put the source code file in the repository:
- 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:
- The static website can be enabled by going to the Properties:
- Post that, we need to apply bucket policy by going to the Permission section of the bucket and click on bucket policy ...