#6297 add a documentation note for windows 2016 images
This commit is contained in:
parent
ccf404ea75
commit
5fff424ad5
|
@ -480,3 +480,19 @@ up all residual volumes that are not designated by the user to remain after
|
||||||
termination. If you need to preserve those source volumes, you can overwrite the
|
termination. If you need to preserve those source volumes, you can overwrite the
|
||||||
termination setting by specifying `delete_on_termination=false` in the
|
termination setting by specifying `delete_on_termination=false` in the
|
||||||
`launch_block_device_mappings` block for the device.
|
`launch_block_device_mappings` block for the device.
|
||||||
|
|
||||||
|
## Windows 2016 Sysprep Commands
|
||||||
|
|
||||||
|
For Windows 2016 Images it is necessary to run Sysprep commands which can be easily added
|
||||||
|
to the provisioner section.
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"type": "powershell",
|
||||||
|
"inline": [
|
||||||
|
"C:/ProgramData/Amazon/EC2-Windows/Launch/Scripts/InitializeInstance.ps1 -Schedule",
|
||||||
|
"C:/ProgramData/Amazon/EC2-Windows/Launch/Scripts/SysprepInstance.ps1 -NoShutdown"
|
||||||
|
]
|
||||||
|
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue