Bring your own image
Bootstrap mode
Use bootstrap mode when the VM starts from stock Ubuntu and installs the
publisher during cloud-init.
1 | new AwsPublisher("publisher", { |
AWS and Azure resolve Canonical Ubuntu 22.04 Minimal automatically when
bootstrap is true and no image is supplied. GCP expects an Ubuntu image
and defaults to bootstrap behavior.
Override bootstrapUrl when the VM must download the script from an
internal mirror.
Pre-baked image mode
Use pre-baked mode when the image already includesnpa_publisher_wizard at wizardPath.
| Platform | Input |
|---|---|
| AWS | amiId |
| Azure | imageId or marketplace |
| GCP | image |
| vSphere | templateName |
1 | new AwsPublisher("publisher", { |
The image must have cloud-init enabled and must contain the install user
or allow cloud-init to create it.