Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #131 from hashicorp/ami-name-fix
Browse files Browse the repository at this point in the history
Add UUID to AMI names
  • Loading branch information
brikis98 authored Apr 3, 2019
2 parents 87d2ed0 + 8d3ed7e commit 91b6e97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/consul-ami/consul.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"builders": [{
"name": "ubuntu16-ami",
"ami_name": "consul-ubuntu-{{isotime | clean_ami_name}}",
"ami_name": "consul-ubuntu-{{isotime | clean_ami_name}}-{{uuid}}",
"ami_description": "An Ubuntu 16.04 AMI that has Consul installed.",
"instance_type": "t2.micro",
"region": "{{user `aws_region`}}",
Expand All @@ -26,7 +26,7 @@
"ssh_username": "ubuntu"
},{
"name": "amazon-linux-2-ami",
"ami_name": "consul-amazon-linux-2-{{isotime | clean_ami_name}}",
"ami_name": "consul-amazon-linux-2-{{isotime | clean_ami_name}}-{{uuid}}",
"ami_description": "An Amazon Linux 2 AMI that has Consul installed.",
"instance_type": "t2.micro",
"region": "{{user `aws_region`}}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"tls_private_key_path": "{{template_dir}}/consul.key.pem"
},
"builders": [{
"ami_name": "consul-with-encryption-ubuntu-{{isotime | clean_ami_name}}",
"ami_name": "consul-with-encryption-ubuntu-{{isotime | clean_ami_name}}-{{uuid}}",
"ami_description": "An Ubuntu 16.04 AMI that has Consul installed and TLS certificates.",
"instance_type": "t2.micro",
"name": "ubuntu16-ami",
Expand All @@ -27,7 +27,7 @@
},
"ssh_username": "ubuntu"
},{
"ami_name": "consul-with-encryption-amazon-linux-2-{{isotime | clean_ami_name}}",
"ami_name": "consul-with-encryption-amazon-linux-2-{{isotime | clean_ami_name}}-{{uuid}}",
"ami_description": "An Amazon Linux 2 AMI that has Consul installed and TLS certificates.",
"instance_type": "t2.micro",
"name": "amazon-linux-2-ami",
Expand Down

0 comments on commit 91b6e97

Please sign in to comment.