跳到正文

cloud-init ​

The cloud-init provider for Pulumi can be used to render valid MIME-multipart cloud-init config.

See the full API documentation for complete details of the available cloud-init provider APIs.

Example ​

typescript
import * as cloudinit from "@pulumi/cloudinit";

const resourceConf = new cloudinit.Config("config", {
    gzip: false,
    base64Encode: false,
    parts: [{
        contentType: "text/x-shellscript",
        content: "baz",
        filename: "foobar.sh",
    }]
});

Libraries ​

The following packages are available in packager managers:

The cloud-init provider is open source and available in the pulumi/pulumi-cloudinit repo.

文档内容翻译自 Pulumi 官方文档。