Build AMI with packer

$ packer build main.json
$ vim ~/.aws/credentials
[default]
aws_access_key_id = 
aws_secret_access_key =

Add the environment variables at the end of file ~/.bashrc

$ vim ~/.bashrc
export AWS_ACCESS_KEY_ID=
export AWS_SECRET_ACCESS_KEY=

Leave a Reply