- Implemented CI/CD for Building AMIs with GitHub Actions
- Created AMI that can be shared between multiple AWS accounts
- AMI will setup the environment for the node.js and will install aws-codedeploy agent in us-east-1 region.
- For this project AMI will be created in dev account and will be shared with prod account.
Github Secrets
aws_access_key(for dev account ghactions user)aws_secret_key(for dev account ghactions user)aws_region(us-east-1)aws_ami_users(production aws account id)
Command for validating and building AMI
packer validate ami.jsonpacker build ami.json
Download packer
Download Packer update demo2