Ideally, we would put all the preceding code under revision control, so let us create some repositories. We need an IAM user with enough privileges to do that:
Note
Please refer to https://github.com/PacktPublishing/Implementing-DevOps-on-AWS/blob/master/5585_05_CodeFiles/CodeCommit/demo-app-cdelivery/Jenkinsfile.
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "NotAction": [ "codecommit:DeleteRepository" ], "Resource": "*" }, { "Effect": "Allow", "NotAction": [ "s3:DeleteBucket" ], "Resource": "*" }, { "Sid": "Stmt1461764665000", "Effect": "Allow", "Action": [ "ec2:AllocateAddress", "ec2:AssociateAddress", ...