Hi Experts,
-
2022.8.10:
AWS released new windows image “Windows_Server-2016-English-Full-Base-2022.08.10” -
2022.8.11:
Actual behavior
we ran packer script but it still picked old image “Windows_Server-2016-English-Full-Base-2022.07.13”
Expected behavior
It should be able to pick the latest image “Windows_Server-2016-English-Full-Base-2022.08.10” -
2022.8.15:
we ran packer script again and it was able to pull the latest image which is “Windows_Server-2016-English-Full-Base-2022.08.10”
we also specify most_recent = True as follows:
==================packer code
source amazon-ebs windows_server {
ami_name = “${var.ami_name} {{isotime "2006_01_02 15.04.05"}}”
communicator = “winrm”
winrm_username = “Administrator”
instance_type = “t3.large”
region = “{var.builder_region}"
ami_regions = "{split(”,“, var.ami_regions)}”
ami_users = “${split(”,“, var.test_ami_account_id)}”
source_ami_filter {
filters = {
name = “Windows_Server-2016-English-Full-Base*”
root-device-type = “ebs”
virtualization-type = “hvm”
}
most_recent = true
owners = [“amazon”]
}
==================packer code
I found another same issue posted:
Appreciated your help!
Thanks,
Tony