Skip to content

Commit

Permalink
update examples to use ubuntu 22.04 instead of 16.04
Browse files Browse the repository at this point in the history
  • Loading branch information
gcagle3 committed Oct 2, 2023
1 parent ec9d703 commit d3677e9
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions examples/packer-basic-example/build.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ variable "oci_subnet_ocid" {
default = ""
}

data "amazon-ami" "ubuntu-xenial" {
data "amazon-ami" "ubuntu-jammy" {
filters = {
architecture = "x86_64"
"block-device-mapping.volume-type" = "gp2"
name = "*ubuntu-xenial-16.04-amd64-server-*"
name = "*ubuntu-jammy-22.04-amd64-server-*"
root-device-type = "ebs"
virtualization-type = "hvm"
}
Expand All @@ -70,7 +70,7 @@ source "amazon-ebs" "ubuntu-example" {
encrypt_boot = false
instance_type = var.instance_type
region = var.aws_region
source_ami = data.amazon-ami.ubuntu-xenial.id
source_ami = data.amazon-ami.ubuntu-jammy.id
ssh_username = "ubuntu"
}

Expand Down
2 changes: 1 addition & 1 deletion examples/terraform-asg-scp-example/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ data "aws_ami" "ubuntu" {

filter {
name = "name"
values = ["ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-*"]
values = ["ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-*"]
}
}

Expand Down
2 changes: 1 addition & 1 deletion examples/terraform-aws-example/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ data "aws_ami" "ubuntu" {

filter {
name = "name"
values = ["ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-*"]
values = ["ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-*"]
}
}

2 changes: 1 addition & 1 deletion examples/terraform-http-example/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ data "aws_ami" "ubuntu" {

filter {
name = "name"
values = ["ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-*"]
values = ["ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-*"]
}
}

2 changes: 1 addition & 1 deletion examples/terraform-remote-exec-example/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ data "aws_ami" "ubuntu" {

filter {
name = "name"
values = ["ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-*"]
values = ["ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-*"]
}
}

2 changes: 1 addition & 1 deletion examples/terraform-ssh-example/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ data "aws_ami" "ubuntu" {

filter {
name = "name"
values = ["ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-*"]
values = ["ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-*"]
}
}

0 comments on commit d3677e9

Please sign in to comment.