- fork the repository in your account and do the git clone.
- Install packer in your system.
- open the terminal and run
packer validate ami.json- change parameter according to your profile and run
packer build \
-var 'aws_access_key=YOUR KEY' \
-var 'aws_secret_key=YOUR SECRET KEY' \
-var 'subnet_id=SUBNET ID'\
-var 'ami_users=USERS'\
ami.json