➜ packer build -var-file=../vars.json template.json
amazon-ebs output will be in this color.
==> amazon-ebs: Prevalidating AMI Name: weechat-v1.0.0
==> amazon-ebs: Error: AMI Name: 'weechat-v1.0.0' is used by an existing AMI: ami-0ee682a1a7e3717d0
Build 'amazon-ebs' errored: Error: AMI Name: 'weechat-v1.0.0' is used by an existing AMI: ami-0ee682a1a7e3717d0
==> Some builds didn't complete successfully and had errors:
--> amazon-ebs: Error: AMI Name: 'weechat-v1.0.0' is used by an existing AMI: ami-0ee682a1a7e3717d0
==> Builds finished but no artifacts were created.
➜ echo $?
1