forked from jenkins-infra/packer-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
datasources.pkr.hcl
33 lines (31 loc) · 926 Bytes
/
datasources.pkr.hcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Data sources are always treated BEFORE locals and sources.
data "amazon-ami" "ubuntu-20_04" {
filters = {
name = format("ubuntu/images/hvm-ssd/ubuntu-*-20.04-%s-server-*", var.architecture)
root-device-type = "ebs"
virtualization-type = "hvm"
}
most_recent = true
owners = ["099720109477"]
region = var.aws_region
}
data "amazon-ami" "windows-2019" {
filters = {
name = "Windows_Server-2019-English-Core-ContainersLatest-*"
root-device-type = "ebs"
virtualization-type = "hvm"
}
most_recent = true
owners = ["amazon"]
region = var.aws_region
}
data "amazon-ami" "windows-2022" {
filters = {
name = "Windows_Server-2022-English-Core-ContainersLatest-*"
root-device-type = "ebs"
virtualization-type = "hvm"
}
most_recent = true
owners = ["amazon"]
region = var.aws_region
}