Skip to content

Commit 4328bed

Browse files
dbasnerGeorge GelashviliTal Usvyatsky
committed
temporarily hardcode old amis so that we can promote
Co-authored-by: George Gelashvili <[email protected]> Co-authored-by: Tal Usvyatsky <[email protected]>
1 parent a07b28c commit 4328bed

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/packer/config/aws.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ def builders
1919
packer_ci_private_key_location = ENV.fetch('PACKER_CI_PRIVATE_KEY_LOCATION', '../packer-ci-private-key/key')
2020
#TODO deleteme. Added to resolve a winrm with newer source ami (ami-0060daada4a15ad8a)
2121
source_ami = @region[:base_ami]
22-
if @os == 'windows2019'
22+
if @os == 'windows2019' && @region[:name].include?('gov')
23+
source_ami = "ami-a180cfc0"
24+
elsif @os == 'windows2019'
2325
source_ami = "ami-075f071b62b749647"
26+
elsif @os == 'windows2012R2'
27+
source_ami = "ami-067ff23da8261d1c7"
2428
end
2529
[
2630
{

0 commit comments

Comments
 (0)