Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

cloud-init

v1.3.0 published on Thursday, Nov 18, 2021 by Pulumi

Config

Create a Config Resource

new Config(name: string, args: ConfigArgs, opts?: CustomResourceOptions);
@overload
def Config(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           base64_encode: Optional[bool] = None,
           boundary: Optional[str] = None,
           gzip: Optional[bool] = None,
           parts: Optional[Sequence[ConfigPartArgs]] = None)
@overload
def Config(resource_name: str,
           args: ConfigArgs,
           opts: Optional[ResourceOptions] = None)
func NewConfig(ctx *Context, name string, args ConfigArgs, opts ...ResourceOption) (*Config, error)
public Config(string name, ConfigArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args ConfigArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ConfigArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Config Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Config resource accepts the following input properties:

Outputs

All input properties are implicitly available as output properties. Additionally, the Config resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Rendered string
rendered cloudinit configuration
Id string
The provider-assigned unique ID for this managed resource.
Rendered string
rendered cloudinit configuration
id string
The provider-assigned unique ID for this managed resource.
rendered string
rendered cloudinit configuration
id str
The provider-assigned unique ID for this managed resource.
rendered str
rendered cloudinit configuration

Look up an Existing Config Resource

Get an existing Config resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ConfigState, opts?: CustomResourceOptions): Config
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        base64_encode: Optional[bool] = None,
        boundary: Optional[str] = None,
        gzip: Optional[bool] = None,
        parts: Optional[Sequence[ConfigPartArgs]] = None,
        rendered: Optional[str] = None) -> Config
func GetConfig(ctx *Context, name string, id IDInput, state *ConfigState, opts ...ResourceOption) (*Config, error)
public static Config Get(string name, Input<string> id, ConfigState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

Base64Encode bool
Boundary string
Gzip bool
Parts List<Pulumi.CloudInit.Inputs.ConfigPartArgs>
Rendered string
rendered cloudinit configuration
Base64Encode bool
Boundary string
Gzip bool
Parts []ConfigPartArgs
Rendered string
rendered cloudinit configuration
base64Encode boolean
boundary string
gzip boolean
parts ConfigPartArgs[]
rendered string
rendered cloudinit configuration
base64_encode bool
boundary str
gzip bool
parts Sequence[ConfigPartArgs]
rendered str
rendered cloudinit configuration

Supporting Types

ConfigPart

Content string
ContentType string
Filename string
MergeType string
Content string
ContentType string
Filename string
MergeType string
content string
contentType string
filename string
mergeType string

Package Details

Repository
https://github.com/pulumi/pulumi-cloudinit
License
Apache-2.0
Notes
This Pulumi package is based on the cloudinit Terraform Provider.