{
    "variables": {
      "base_ami_id": "{{env `BASE_AMI_ID`}}"
    },

    "builders": [{
        "type": "amazon-ebs",
        "region": "us-west-2",
        "source_ami": "{{user `base_ami_id`}}",
        "instance_type": "t2.micro",
        "ssh_username": "ubuntu",
        "ami_name": "Athenz {{timestamp}}",
        "ami_groups": [
          "all"
        ]
    }],

    "provisioners" : [{
        "type" : "file",
        "source" : "provision",
        "destination" : "/tmp"
    }, {
        "type" : "shell",
        "script" : "./aws/provision_athenz.sh"
    }]
}

{
    "variables": {
      "base_ami_id": "{{env `BASE_AMI_ID`}}"
    },

    "builders": [{
        "type": "amazon-ebs",
        "region": "us-west-2",
        "source_ami": "{{user `base_ami_id`}}",
        "instance_type": "t2.micro",
        "ssh_username": "ubuntu",
        "ami_name": "Athenz-{{isotime \"20060102030405\"}}",
        "ami_groups": [
          "all"
        ]
    }],

    "provisioners" : [{
        "type" : "file",
        "source" : "provision",
        "destination" : "/tmp"
    }, {
        "type" : "shell",
        "script" : "./aws/provision_athenz.sh"
    }]
}

Use a human readable time stamp as part of the ami name
Use a human readable time stamp as part of the ami name
