I want to use packer to create our own bare windows OS images that are windows_updated and have other (specific to us) core software installed.
If I'm reading the docs correctly I need to set the password field to a value and then use that password in my winrm communicator.
When I try and launch using the below script as an example I get the following error
unknown configuration key: "password"
Am I doing something wrong? Or is there a way that the ecs instance autogenerates its administrator password and that winrm can somehow pick it up?
I want to use packer to create our own bare windows OS images that are windows_updated and have other (specific to us) core software installed.
If I'm reading the docs correctly I need to set the password field to a value and then use that password in my winrm communicator. When I try and launch using the below script as an example I get the following error
"variables": { "build_version": "{{env
WIN_BUILD
}}", "image_name": "BaseWindowsServer2012-V{{envWIN_BUILD
}}", "packer_timestamp" :"{{timestamp}}", "winrm_username": "{{envWINRM_user
}}", "winrm_password": "{{envWINRM_password
}}", "ALI_access_key": "{{envALICLOUD_ACCESS_KEY
}}", "ALI_secret_key": "{{envALICLOUD_SECRET_KEY
}}", "source_image": "win2012r2_64_dtc_17196_en-us_40G_alibase_20170915.vhd" }, "builders" :[ { "name": "alicloud.eu-central-1.ecs.gn5-c4g1.xlarge", "type":"alicloud-ecs", "access_key":"{{userALI_access_key
}}", "secret_key":"{{userALI_secret_key
}}", "region":"eu-central-1", "vpc_id":"xxxxxx","vswitch_id":"xxxxx", "security_group_id":"xxxxxx", "instance_type":"ecs.gn5-c4g1.xlarge", "instancename": "PACKER{{user
image_name
}}_v{{userbuild_version
}}_{{buildname}}{{userpacker_timestamp
}}","internet_charge_type":"PayByTraffic", "internet_max_bandwidth_out": "100", "source_image":"{{user
source_image
}}", "password":"{{userwinrm_password
}}", "imagename":"packer{{userimage_name
}}_{{userregion
}}", "image_description":"Built for use on YellowDog systems", "image_version":"v{{userbuild_version
}}", "image_ignore_data_disks":"true", "io_optimized":"true", "image_force_delete":"true", "communicator": "winrm","winrm_username": "{{user
winrm_username
}}", "winrm_password": "{{userwinrm_password
}}", "winrm_timeout": "24h", "winrm_use_ssl": false, "winrm_insecure": true} ],