Skip to content

Commit

Permalink
updated Packer
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Krausen committed May 11, 2021
1 parent 8dde147 commit f2be2af
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions vault/packer/vault.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,21 @@ data "amazon-ami" "amazon-linux-2" {
owners = ["amazon"]
region = var.aws_region
}
locals {
timestamp = "${timestamp()}"
}

source "amazon-ebs" "amazon-ebs-amazonlinux-2" {
ami_description = "Vault - Amazon Linux 2"
ami_name = "vault-amazonlinux2"
ami_name = "vault-amazonlinux2-${local.timestamp}"
ami_regions = ["us-east-1"]
ami_virtualization_type = "hvm"
associate_public_ip_address = true
force_delete_snapshot = true
force_deregister = true
instance_type = "m5.large"
region = var.aws_region
source_ami = "${data.amazon-ami.amazon-linux-2.id}"
source_ami = data.amazon-ami.amazon-linux-2.id
spot_price = "0"
ssh_pty = true
ssh_timeout = "5m"
Expand Down

0 comments on commit f2be2af

Please sign in to comment.