Skip to content

Commit

Permalink
template tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
szechyjs committed Feb 10, 2025
1 parent 7456d37 commit 6ac699c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
9 changes: 9 additions & 0 deletions images/ubuntu/templates/ubuntu-22.04-bp.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
packer {
required_plugins {
amazon = {
source = "github.com/hashicorp/amazon"
version = "~> 1"
}
}
}

variable "dockerhub_login" {
type = string
default = "${env("DOCKERHUB_LOGIN")}"
Expand Down
13 changes: 11 additions & 2 deletions images/ubuntu/templates/ubuntu-24.04-bp.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
packer {
required_plugins {
amazon = {
source = "github.com/hashicorp/amazon"
version = "~> 1"
}
}
}

variable "dockerhub_login" {
type = string
default = "${env("DOCKERHUB_LOGIN")}"
Expand Down Expand Up @@ -69,14 +78,14 @@ source "amazon-ebs" "build_ami" {
delete_on_termination = true
device_name = "/dev/sda1"
volume_size = 86
volume_type = "gp2"
volume_type = "gp3"
}
profile = "dev"
region = "us-east-1"
# snapshot_users = "${var.aws_accounts}"
source_ami_filter {
filters = {
name = "ubuntu/images/hvm-ssd/ubuntu-noble-24.04-amd64-server-*"
name = "ubuntu/images/hvm-ssd-gp3/ubuntu-noble-24.04-amd64-server-*"
root-device-type = "ebs"
virtualization-type = "hvm"
}
Expand Down

0 comments on commit 6ac699c

Please sign in to comment.