Documentation
¶
Overview ¶
A Pulumi package for creating and managing cloudinit cloud resources.
Index ¶
- type Config
- type ConfigArgs
- type ConfigArray
- type ConfigArrayInput
- type ConfigArrayOutput
- type ConfigInput
- type ConfigMap
- type ConfigMapInput
- type ConfigMapOutput
- type ConfigOutput
- func (o ConfigOutput) Base64Encode() pulumi.BoolOutput
- func (o ConfigOutput) Boundary() pulumi.StringOutput
- func (ConfigOutput) ElementType() reflect.Type
- func (o ConfigOutput) Gzip() pulumi.BoolOutput
- func (o ConfigOutput) Parts() ConfigPartArrayOutput
- func (o ConfigOutput) Rendered() pulumi.StringOutput
- func (o ConfigOutput) ToConfigOutput() ConfigOutput
- func (o ConfigOutput) ToConfigOutputWithContext(ctx context.Context) ConfigOutput
- type ConfigPart
- type ConfigPartArgs
- type ConfigPartArray
- type ConfigPartArrayInput
- type ConfigPartArrayOutput
- func (ConfigPartArrayOutput) ElementType() reflect.Type
- func (o ConfigPartArrayOutput) Index(i pulumi.IntInput) ConfigPartOutput
- func (o ConfigPartArrayOutput) ToConfigPartArrayOutput() ConfigPartArrayOutput
- func (o ConfigPartArrayOutput) ToConfigPartArrayOutputWithContext(ctx context.Context) ConfigPartArrayOutput
- type ConfigPartInput
- type ConfigPartOutput
- func (o ConfigPartOutput) Content() pulumi.StringOutput
- func (o ConfigPartOutput) ContentType() pulumi.StringPtrOutput
- func (ConfigPartOutput) ElementType() reflect.Type
- func (o ConfigPartOutput) Filename() pulumi.StringPtrOutput
- func (o ConfigPartOutput) MergeType() pulumi.StringPtrOutput
- func (o ConfigPartOutput) ToConfigPartOutput() ConfigPartOutput
- func (o ConfigPartOutput) ToConfigPartOutputWithContext(ctx context.Context) ConfigPartOutput
- type ConfigState
- type GetConfigPart
- type GetConfigPartArgs
- type GetConfigPartArray
- type GetConfigPartArrayInput
- type GetConfigPartArrayOutput
- func (GetConfigPartArrayOutput) ElementType() reflect.Type
- func (o GetConfigPartArrayOutput) Index(i pulumi.IntInput) GetConfigPartOutput
- func (o GetConfigPartArrayOutput) ToGetConfigPartArrayOutput() GetConfigPartArrayOutput
- func (o GetConfigPartArrayOutput) ToGetConfigPartArrayOutputWithContext(ctx context.Context) GetConfigPartArrayOutput
- type GetConfigPartInput
- type GetConfigPartOutput
- func (o GetConfigPartOutput) Content() pulumi.StringOutput
- func (o GetConfigPartOutput) ContentType() pulumi.StringPtrOutput
- func (GetConfigPartOutput) ElementType() reflect.Type
- func (o GetConfigPartOutput) Filename() pulumi.StringPtrOutput
- func (o GetConfigPartOutput) MergeType() pulumi.StringPtrOutput
- func (o GetConfigPartOutput) ToGetConfigPartOutput() GetConfigPartOutput
- func (o GetConfigPartOutput) ToGetConfigPartOutputWithContext(ctx context.Context) GetConfigPartOutput
- type LookupConfigArgs
- type LookupConfigOutputArgs
- type LookupConfigResult
- type LookupConfigResultOutput
- func (o LookupConfigResultOutput) Base64Encode() pulumi.BoolOutput
- func (o LookupConfigResultOutput) Boundary() pulumi.StringOutput
- func (LookupConfigResultOutput) ElementType() reflect.Type
- func (o LookupConfigResultOutput) Gzip() pulumi.BoolOutput
- func (o LookupConfigResultOutput) Id() pulumi.StringOutput
- func (o LookupConfigResultOutput) Parts() GetConfigPartArrayOutput
- func (o LookupConfigResultOutput) Rendered() pulumi.StringOutput
- func (o LookupConfigResultOutput) ToLookupConfigResultOutput() LookupConfigResultOutput
- func (o LookupConfigResultOutput) ToLookupConfigResultOutputWithContext(ctx context.Context) LookupConfigResultOutput
- type Provider
- type ProviderArgs
- type ProviderInput
- type ProviderOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { pulumi.CustomResourceState // Specify whether or not to base64 encode the `rendered` output. Defaults to `true`, and cannot be disabled if gzip is `true`. Base64Encode pulumi.BoolOutput `pulumi:"base64Encode"` // Specify the Writer's default boundary separator. Defaults to `MIMEBOUNDARY`. Boundary pulumi.StringOutput `pulumi:"boundary"` // Specify whether or not to gzip the `rendered` output. Defaults to `true`. Gzip pulumi.BoolOutput `pulumi:"gzip"` // A nested block type which adds a file to the generated cloud-init configuration. Use multiple `part` blocks to specify multiple files, which will be included in order of declaration in the final MIME document. Parts ConfigPartArrayOutput `pulumi:"parts"` // The final rendered multi-part cloud-init config. Rendered pulumi.StringOutput `pulumi:"rendered"` }
> **This resource is deprecated** Please use the Config
data source instead.
Renders a [multi-part MIME configuration](https://cloudinit.readthedocs.io/en/latest/explanation/format.html#mime-multi-part-archive) for use with [cloud-init](https://cloudinit.readthedocs.io/en/latest/).
Cloud-init is a commonly-used startup configuration utility for cloud compute instances. It accepts configuration via provider-specific user data mechanisms, such as `userData` for Amazon EC2 instances. Multi-part MIME is one of the data formats it accepts. For more information, see [User-Data Formats](https://cloudinit.readthedocs.io/en/latest/explanation/format.html) in the cloud-init manual.
This is not a generalized utility for producing multi-part MIME messages. Its feature set is specialized for cloud-init multi-part MIME messages.
## Example Usage
### Config
### hello-script.sh
### cloud-config.yaml
<!-- This schema was originally generated with tfplugindocs, then modified manually to ensure `part` block list is noted as Required -->
func GetConfig ¶
func GetConfig(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ConfigState, opts ...pulumi.ResourceOption) (*Config, error)
GetConfig gets an existing Config resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewConfig ¶
func NewConfig(ctx *pulumi.Context, name string, args *ConfigArgs, opts ...pulumi.ResourceOption) (*Config, error)
NewConfig registers a new resource with the given unique name, arguments, and options.
func (*Config) ElementType ¶
func (*Config) ToConfigOutput ¶
func (i *Config) ToConfigOutput() ConfigOutput
func (*Config) ToConfigOutputWithContext ¶
func (i *Config) ToConfigOutputWithContext(ctx context.Context) ConfigOutput
type ConfigArgs ¶
type ConfigArgs struct { // Specify whether or not to base64 encode the `rendered` output. Defaults to `true`, and cannot be disabled if gzip is `true`. Base64Encode pulumi.BoolPtrInput // Specify the Writer's default boundary separator. Defaults to `MIMEBOUNDARY`. Boundary pulumi.StringPtrInput // Specify whether or not to gzip the `rendered` output. Defaults to `true`. Gzip pulumi.BoolPtrInput // A nested block type which adds a file to the generated cloud-init configuration. Use multiple `part` blocks to specify multiple files, which will be included in order of declaration in the final MIME document. Parts ConfigPartArrayInput }
The set of arguments for constructing a Config resource.
func (ConfigArgs) ElementType ¶
func (ConfigArgs) ElementType() reflect.Type
type ConfigArray ¶ added in v0.1.3
type ConfigArray []ConfigInput
func (ConfigArray) ElementType ¶ added in v0.1.3
func (ConfigArray) ElementType() reflect.Type
func (ConfigArray) ToConfigArrayOutput ¶ added in v0.1.3
func (i ConfigArray) ToConfigArrayOutput() ConfigArrayOutput
func (ConfigArray) ToConfigArrayOutputWithContext ¶ added in v0.1.3
func (i ConfigArray) ToConfigArrayOutputWithContext(ctx context.Context) ConfigArrayOutput
type ConfigArrayInput ¶ added in v0.1.3
type ConfigArrayInput interface { pulumi.Input ToConfigArrayOutput() ConfigArrayOutput ToConfigArrayOutputWithContext(context.Context) ConfigArrayOutput }
ConfigArrayInput is an input type that accepts ConfigArray and ConfigArrayOutput values. You can construct a concrete instance of `ConfigArrayInput` via:
ConfigArray{ ConfigArgs{...} }
type ConfigArrayOutput ¶ added in v0.1.3
type ConfigArrayOutput struct{ *pulumi.OutputState }
func (ConfigArrayOutput) ElementType ¶ added in v0.1.3
func (ConfigArrayOutput) ElementType() reflect.Type
func (ConfigArrayOutput) Index ¶ added in v0.1.3
func (o ConfigArrayOutput) Index(i pulumi.IntInput) ConfigOutput
func (ConfigArrayOutput) ToConfigArrayOutput ¶ added in v0.1.3
func (o ConfigArrayOutput) ToConfigArrayOutput() ConfigArrayOutput
func (ConfigArrayOutput) ToConfigArrayOutputWithContext ¶ added in v0.1.3
func (o ConfigArrayOutput) ToConfigArrayOutputWithContext(ctx context.Context) ConfigArrayOutput
type ConfigInput ¶
type ConfigInput interface { pulumi.Input ToConfigOutput() ConfigOutput ToConfigOutputWithContext(ctx context.Context) ConfigOutput }
type ConfigMap ¶ added in v0.1.3
type ConfigMap map[string]ConfigInput
func (ConfigMap) ElementType ¶ added in v0.1.3
func (ConfigMap) ToConfigMapOutput ¶ added in v0.1.3
func (i ConfigMap) ToConfigMapOutput() ConfigMapOutput
func (ConfigMap) ToConfigMapOutputWithContext ¶ added in v0.1.3
func (i ConfigMap) ToConfigMapOutputWithContext(ctx context.Context) ConfigMapOutput
type ConfigMapInput ¶ added in v0.1.3
type ConfigMapInput interface { pulumi.Input ToConfigMapOutput() ConfigMapOutput ToConfigMapOutputWithContext(context.Context) ConfigMapOutput }
ConfigMapInput is an input type that accepts ConfigMap and ConfigMapOutput values. You can construct a concrete instance of `ConfigMapInput` via:
ConfigMap{ "key": ConfigArgs{...} }
type ConfigMapOutput ¶ added in v0.1.3
type ConfigMapOutput struct{ *pulumi.OutputState }
func (ConfigMapOutput) ElementType ¶ added in v0.1.3
func (ConfigMapOutput) ElementType() reflect.Type
func (ConfigMapOutput) MapIndex ¶ added in v0.1.3
func (o ConfigMapOutput) MapIndex(k pulumi.StringInput) ConfigOutput
func (ConfigMapOutput) ToConfigMapOutput ¶ added in v0.1.3
func (o ConfigMapOutput) ToConfigMapOutput() ConfigMapOutput
func (ConfigMapOutput) ToConfigMapOutputWithContext ¶ added in v0.1.3
func (o ConfigMapOutput) ToConfigMapOutputWithContext(ctx context.Context) ConfigMapOutput
type ConfigOutput ¶
type ConfigOutput struct{ *pulumi.OutputState }
func (ConfigOutput) Base64Encode ¶ added in v1.3.1
func (o ConfigOutput) Base64Encode() pulumi.BoolOutput
Specify whether or not to base64 encode the `rendered` output. Defaults to `true`, and cannot be disabled if gzip is `true`.
func (ConfigOutput) Boundary ¶ added in v1.3.1
func (o ConfigOutput) Boundary() pulumi.StringOutput
Specify the Writer's default boundary separator. Defaults to `MIMEBOUNDARY`.
func (ConfigOutput) ElementType ¶
func (ConfigOutput) ElementType() reflect.Type
func (ConfigOutput) Gzip ¶ added in v1.3.1
func (o ConfigOutput) Gzip() pulumi.BoolOutput
Specify whether or not to gzip the `rendered` output. Defaults to `true`.
func (ConfigOutput) Parts ¶ added in v1.3.1
func (o ConfigOutput) Parts() ConfigPartArrayOutput
A nested block type which adds a file to the generated cloud-init configuration. Use multiple `part` blocks to specify multiple files, which will be included in order of declaration in the final MIME document.
func (ConfigOutput) Rendered ¶ added in v1.3.1
func (o ConfigOutput) Rendered() pulumi.StringOutput
The final rendered multi-part cloud-init config.
func (ConfigOutput) ToConfigOutput ¶
func (o ConfigOutput) ToConfigOutput() ConfigOutput
func (ConfigOutput) ToConfigOutputWithContext ¶
func (o ConfigOutput) ToConfigOutputWithContext(ctx context.Context) ConfigOutput
type ConfigPart ¶
type ConfigPart struct { // Body content for the part. Content string `pulumi:"content"` // A MIME-style content type to report in the header for the part. Defaults to `text/plain` ContentType *string `pulumi:"contentType"` // A filename to report in the header for the part. Filename *string `pulumi:"filename"` // A value for the `X-Merge-Type` header of the part, to control [cloud-init merging behavior](https://cloudinit.readthedocs.io/en/latest/reference/merging.html). MergeType *string `pulumi:"mergeType"` }
type ConfigPartArgs ¶
type ConfigPartArgs struct { // Body content for the part. Content pulumi.StringInput `pulumi:"content"` // A MIME-style content type to report in the header for the part. Defaults to `text/plain` ContentType pulumi.StringPtrInput `pulumi:"contentType"` // A filename to report in the header for the part. Filename pulumi.StringPtrInput `pulumi:"filename"` // A value for the `X-Merge-Type` header of the part, to control [cloud-init merging behavior](https://cloudinit.readthedocs.io/en/latest/reference/merging.html). MergeType pulumi.StringPtrInput `pulumi:"mergeType"` }
func (ConfigPartArgs) ElementType ¶
func (ConfigPartArgs) ElementType() reflect.Type
func (ConfigPartArgs) ToConfigPartOutput ¶
func (i ConfigPartArgs) ToConfigPartOutput() ConfigPartOutput
func (ConfigPartArgs) ToConfigPartOutputWithContext ¶
func (i ConfigPartArgs) ToConfigPartOutputWithContext(ctx context.Context) ConfigPartOutput
type ConfigPartArray ¶
type ConfigPartArray []ConfigPartInput
func (ConfigPartArray) ElementType ¶
func (ConfigPartArray) ElementType() reflect.Type
func (ConfigPartArray) ToConfigPartArrayOutput ¶
func (i ConfigPartArray) ToConfigPartArrayOutput() ConfigPartArrayOutput
func (ConfigPartArray) ToConfigPartArrayOutputWithContext ¶
func (i ConfigPartArray) ToConfigPartArrayOutputWithContext(ctx context.Context) ConfigPartArrayOutput
type ConfigPartArrayInput ¶
type ConfigPartArrayInput interface { pulumi.Input ToConfigPartArrayOutput() ConfigPartArrayOutput ToConfigPartArrayOutputWithContext(context.Context) ConfigPartArrayOutput }
ConfigPartArrayInput is an input type that accepts ConfigPartArray and ConfigPartArrayOutput values. You can construct a concrete instance of `ConfigPartArrayInput` via:
ConfigPartArray{ ConfigPartArgs{...} }
type ConfigPartArrayOutput ¶
type ConfigPartArrayOutput struct{ *pulumi.OutputState }
func (ConfigPartArrayOutput) ElementType ¶
func (ConfigPartArrayOutput) ElementType() reflect.Type
func (ConfigPartArrayOutput) Index ¶
func (o ConfigPartArrayOutput) Index(i pulumi.IntInput) ConfigPartOutput
func (ConfigPartArrayOutput) ToConfigPartArrayOutput ¶
func (o ConfigPartArrayOutput) ToConfigPartArrayOutput() ConfigPartArrayOutput
func (ConfigPartArrayOutput) ToConfigPartArrayOutputWithContext ¶
func (o ConfigPartArrayOutput) ToConfigPartArrayOutputWithContext(ctx context.Context) ConfigPartArrayOutput
type ConfigPartInput ¶
type ConfigPartInput interface { pulumi.Input ToConfigPartOutput() ConfigPartOutput ToConfigPartOutputWithContext(context.Context) ConfigPartOutput }
ConfigPartInput is an input type that accepts ConfigPartArgs and ConfigPartOutput values. You can construct a concrete instance of `ConfigPartInput` via:
ConfigPartArgs{...}
type ConfigPartOutput ¶
type ConfigPartOutput struct{ *pulumi.OutputState }
func (ConfigPartOutput) Content ¶
func (o ConfigPartOutput) Content() pulumi.StringOutput
Body content for the part.
func (ConfigPartOutput) ContentType ¶
func (o ConfigPartOutput) ContentType() pulumi.StringPtrOutput
A MIME-style content type to report in the header for the part. Defaults to `text/plain`
func (ConfigPartOutput) ElementType ¶
func (ConfigPartOutput) ElementType() reflect.Type
func (ConfigPartOutput) Filename ¶
func (o ConfigPartOutput) Filename() pulumi.StringPtrOutput
A filename to report in the header for the part.
func (ConfigPartOutput) MergeType ¶
func (o ConfigPartOutput) MergeType() pulumi.StringPtrOutput
A value for the `X-Merge-Type` header of the part, to control [cloud-init merging behavior](https://cloudinit.readthedocs.io/en/latest/reference/merging.html).
func (ConfigPartOutput) ToConfigPartOutput ¶
func (o ConfigPartOutput) ToConfigPartOutput() ConfigPartOutput
func (ConfigPartOutput) ToConfigPartOutputWithContext ¶
func (o ConfigPartOutput) ToConfigPartOutputWithContext(ctx context.Context) ConfigPartOutput
type ConfigState ¶
type ConfigState struct { // Specify whether or not to base64 encode the `rendered` output. Defaults to `true`, and cannot be disabled if gzip is `true`. Base64Encode pulumi.BoolPtrInput // Specify the Writer's default boundary separator. Defaults to `MIMEBOUNDARY`. Boundary pulumi.StringPtrInput // Specify whether or not to gzip the `rendered` output. Defaults to `true`. Gzip pulumi.BoolPtrInput // A nested block type which adds a file to the generated cloud-init configuration. Use multiple `part` blocks to specify multiple files, which will be included in order of declaration in the final MIME document. Parts ConfigPartArrayInput // The final rendered multi-part cloud-init config. Rendered pulumi.StringPtrInput }
func (ConfigState) ElementType ¶
func (ConfigState) ElementType() reflect.Type
type GetConfigPart ¶
type GetConfigPart struct { // Body content for the part. Content string `pulumi:"content"` // A MIME-style content type to report in the header for the part. Defaults to `text/plain` ContentType *string `pulumi:"contentType"` // A filename to report in the header for the part. Filename *string `pulumi:"filename"` // A value for the `X-Merge-Type` header of the part, to control [cloud-init merging behavior](https://cloudinit.readthedocs.io/en/latest/reference/merging.html). MergeType *string `pulumi:"mergeType"` }
func (*GetConfigPart) Defaults ¶ added in v1.4.1
func (val *GetConfigPart) Defaults() *GetConfigPart
Defaults sets the appropriate defaults for GetConfigPart
type GetConfigPartArgs ¶
type GetConfigPartArgs struct { // Body content for the part. Content pulumi.StringInput `pulumi:"content"` // A MIME-style content type to report in the header for the part. Defaults to `text/plain` ContentType pulumi.StringPtrInput `pulumi:"contentType"` // A filename to report in the header for the part. Filename pulumi.StringPtrInput `pulumi:"filename"` // A value for the `X-Merge-Type` header of the part, to control [cloud-init merging behavior](https://cloudinit.readthedocs.io/en/latest/reference/merging.html). MergeType pulumi.StringPtrInput `pulumi:"mergeType"` }
func (*GetConfigPartArgs) Defaults ¶ added in v1.4.1
func (val *GetConfigPartArgs) Defaults() *GetConfigPartArgs
Defaults sets the appropriate defaults for GetConfigPartArgs
func (GetConfigPartArgs) ElementType ¶
func (GetConfigPartArgs) ElementType() reflect.Type
func (GetConfigPartArgs) ToGetConfigPartOutput ¶
func (i GetConfigPartArgs) ToGetConfigPartOutput() GetConfigPartOutput
func (GetConfigPartArgs) ToGetConfigPartOutputWithContext ¶
func (i GetConfigPartArgs) ToGetConfigPartOutputWithContext(ctx context.Context) GetConfigPartOutput
type GetConfigPartArray ¶
type GetConfigPartArray []GetConfigPartInput
func (GetConfigPartArray) ElementType ¶
func (GetConfigPartArray) ElementType() reflect.Type
func (GetConfigPartArray) ToGetConfigPartArrayOutput ¶
func (i GetConfigPartArray) ToGetConfigPartArrayOutput() GetConfigPartArrayOutput
func (GetConfigPartArray) ToGetConfigPartArrayOutputWithContext ¶
func (i GetConfigPartArray) ToGetConfigPartArrayOutputWithContext(ctx context.Context) GetConfigPartArrayOutput
type GetConfigPartArrayInput ¶
type GetConfigPartArrayInput interface { pulumi.Input ToGetConfigPartArrayOutput() GetConfigPartArrayOutput ToGetConfigPartArrayOutputWithContext(context.Context) GetConfigPartArrayOutput }
GetConfigPartArrayInput is an input type that accepts GetConfigPartArray and GetConfigPartArrayOutput values. You can construct a concrete instance of `GetConfigPartArrayInput` via:
GetConfigPartArray{ GetConfigPartArgs{...} }
type GetConfigPartArrayOutput ¶
type GetConfigPartArrayOutput struct{ *pulumi.OutputState }
func (GetConfigPartArrayOutput) ElementType ¶
func (GetConfigPartArrayOutput) ElementType() reflect.Type
func (GetConfigPartArrayOutput) Index ¶
func (o GetConfigPartArrayOutput) Index(i pulumi.IntInput) GetConfigPartOutput
func (GetConfigPartArrayOutput) ToGetConfigPartArrayOutput ¶
func (o GetConfigPartArrayOutput) ToGetConfigPartArrayOutput() GetConfigPartArrayOutput
func (GetConfigPartArrayOutput) ToGetConfigPartArrayOutputWithContext ¶
func (o GetConfigPartArrayOutput) ToGetConfigPartArrayOutputWithContext(ctx context.Context) GetConfigPartArrayOutput
type GetConfigPartInput ¶
type GetConfigPartInput interface { pulumi.Input ToGetConfigPartOutput() GetConfigPartOutput ToGetConfigPartOutputWithContext(context.Context) GetConfigPartOutput }
GetConfigPartInput is an input type that accepts GetConfigPartArgs and GetConfigPartOutput values. You can construct a concrete instance of `GetConfigPartInput` via:
GetConfigPartArgs{...}
type GetConfigPartOutput ¶
type GetConfigPartOutput struct{ *pulumi.OutputState }
func (GetConfigPartOutput) Content ¶
func (o GetConfigPartOutput) Content() pulumi.StringOutput
Body content for the part.
func (GetConfigPartOutput) ContentType ¶
func (o GetConfigPartOutput) ContentType() pulumi.StringPtrOutput
A MIME-style content type to report in the header for the part. Defaults to `text/plain`
func (GetConfigPartOutput) ElementType ¶
func (GetConfigPartOutput) ElementType() reflect.Type
func (GetConfigPartOutput) Filename ¶
func (o GetConfigPartOutput) Filename() pulumi.StringPtrOutput
A filename to report in the header for the part.
func (GetConfigPartOutput) MergeType ¶
func (o GetConfigPartOutput) MergeType() pulumi.StringPtrOutput
A value for the `X-Merge-Type` header of the part, to control [cloud-init merging behavior](https://cloudinit.readthedocs.io/en/latest/reference/merging.html).
func (GetConfigPartOutput) ToGetConfigPartOutput ¶
func (o GetConfigPartOutput) ToGetConfigPartOutput() GetConfigPartOutput
func (GetConfigPartOutput) ToGetConfigPartOutputWithContext ¶
func (o GetConfigPartOutput) ToGetConfigPartOutputWithContext(ctx context.Context) GetConfigPartOutput
type LookupConfigArgs ¶
type LookupConfigArgs struct { // Specify whether or not to base64 encode the `rendered` output. Defaults to `true`, and cannot be disabled if gzip is `true`. Base64Encode *bool `pulumi:"base64Encode"` // Specify the Writer's default boundary separator. Defaults to `MIMEBOUNDARY`. Boundary *string `pulumi:"boundary"` // Specify whether or not to gzip the `rendered` output. Defaults to `true`. Gzip *bool `pulumi:"gzip"` // A nested block type which adds a file to the generated cloud-init configuration. Use multiple `part` blocks to specify multiple files, which will be included in order of declaration in the final MIME document. Parts []GetConfigPart `pulumi:"parts"` }
A collection of arguments for invoking getConfig.
type LookupConfigOutputArgs ¶ added in v1.2.0
type LookupConfigOutputArgs struct { // Specify whether or not to base64 encode the `rendered` output. Defaults to `true`, and cannot be disabled if gzip is `true`. Base64Encode pulumi.BoolPtrInput `pulumi:"base64Encode"` // Specify the Writer's default boundary separator. Defaults to `MIMEBOUNDARY`. Boundary pulumi.StringPtrInput `pulumi:"boundary"` // Specify whether or not to gzip the `rendered` output. Defaults to `true`. Gzip pulumi.BoolPtrInput `pulumi:"gzip"` // A nested block type which adds a file to the generated cloud-init configuration. Use multiple `part` blocks to specify multiple files, which will be included in order of declaration in the final MIME document. Parts GetConfigPartArrayInput `pulumi:"parts"` }
A collection of arguments for invoking getConfig.
func (LookupConfigOutputArgs) ElementType ¶ added in v1.2.0
func (LookupConfigOutputArgs) ElementType() reflect.Type
type LookupConfigResult ¶
type LookupConfigResult struct { // Specify whether or not to base64 encode the `rendered` output. Defaults to `true`, and cannot be disabled if gzip is `true`. Base64Encode bool `pulumi:"base64Encode"` // Specify the Writer's default boundary separator. Defaults to `MIMEBOUNDARY`. Boundary string `pulumi:"boundary"` // Specify whether or not to gzip the `rendered` output. Defaults to `true`. Gzip bool `pulumi:"gzip"` // [CRC-32](https://pkg.go.dev/hash/crc32) checksum of `rendered` cloud-init config. Id string `pulumi:"id"` // A nested block type which adds a file to the generated cloud-init configuration. Use multiple `part` blocks to specify multiple files, which will be included in order of declaration in the final MIME document. Parts []GetConfigPart `pulumi:"parts"` // The final rendered multi-part cloud-init config. Rendered string `pulumi:"rendered"` }
A collection of values returned by getConfig.
func LookupConfig ¶
func LookupConfig(ctx *pulumi.Context, args *LookupConfigArgs, opts ...pulumi.InvokeOption) (*LookupConfigResult, error)
Renders a [multi-part MIME configuration](https://cloudinit.readthedocs.io/en/latest/explanation/format.html#mime-multi-part-archive) for use with [cloud-init](https://cloudinit.readthedocs.io/en/latest/).
Cloud-init is a commonly-used startup configuration utility for cloud compute instances. It accepts configuration via provider-specific user data mechanisms, such as `userData` for Amazon EC2 instances. Multi-part MIME is one of the data formats it accepts. For more information, see [User-Data Formats](https://cloudinit.readthedocs.io/en/latest/explanation/format.html) in the cloud-init manual.
This is not a generalized utility for producing multi-part MIME messages. Its feature set is specialized for cloud-init multi-part MIME messages.
## Example Usage
### Config
### hello-script.sh
### cloud-config.yaml
<!-- This schema was originally generated with tfplugindocs, then modified manually to ensure `part` block list is noted as Required -->
type LookupConfigResultOutput ¶ added in v1.2.0
type LookupConfigResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getConfig.
func LookupConfigOutput ¶ added in v1.2.0
func LookupConfigOutput(ctx *pulumi.Context, args LookupConfigOutputArgs, opts ...pulumi.InvokeOption) LookupConfigResultOutput
func (LookupConfigResultOutput) Base64Encode ¶ added in v1.2.0
func (o LookupConfigResultOutput) Base64Encode() pulumi.BoolOutput
Specify whether or not to base64 encode the `rendered` output. Defaults to `true`, and cannot be disabled if gzip is `true`.
func (LookupConfigResultOutput) Boundary ¶ added in v1.2.0
func (o LookupConfigResultOutput) Boundary() pulumi.StringOutput
Specify the Writer's default boundary separator. Defaults to `MIMEBOUNDARY`.
func (LookupConfigResultOutput) ElementType ¶ added in v1.2.0
func (LookupConfigResultOutput) ElementType() reflect.Type
func (LookupConfigResultOutput) Gzip ¶ added in v1.2.0
func (o LookupConfigResultOutput) Gzip() pulumi.BoolOutput
Specify whether or not to gzip the `rendered` output. Defaults to `true`.
func (LookupConfigResultOutput) Id ¶ added in v1.2.0
func (o LookupConfigResultOutput) Id() pulumi.StringOutput
[CRC-32](https://pkg.go.dev/hash/crc32) checksum of `rendered` cloud-init config.
func (LookupConfigResultOutput) Parts ¶ added in v1.2.0
func (o LookupConfigResultOutput) Parts() GetConfigPartArrayOutput
A nested block type which adds a file to the generated cloud-init configuration. Use multiple `part` blocks to specify multiple files, which will be included in order of declaration in the final MIME document.
func (LookupConfigResultOutput) Rendered ¶ added in v1.2.0
func (o LookupConfigResultOutput) Rendered() pulumi.StringOutput
The final rendered multi-part cloud-init config.
func (LookupConfigResultOutput) ToLookupConfigResultOutput ¶ added in v1.2.0
func (o LookupConfigResultOutput) ToLookupConfigResultOutput() LookupConfigResultOutput
func (LookupConfigResultOutput) ToLookupConfigResultOutputWithContext ¶ added in v1.2.0
func (o LookupConfigResultOutput) ToLookupConfigResultOutputWithContext(ctx context.Context) LookupConfigResultOutput
type Provider ¶
type Provider struct {
pulumi.ProviderResourceState
}
The provider type for the cloudinit package. By default, resources use package-wide configuration settings, however an explicit `Provider` instance may be created and passed during resource construction to achieve fine-grained programmatic control over provider settings. See the [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
func NewProvider ¶
func NewProvider(ctx *pulumi.Context, name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error)
NewProvider registers a new resource with the given unique name, arguments, and options.
func (*Provider) ElementType ¶
func (*Provider) ToProviderOutput ¶
func (i *Provider) ToProviderOutput() ProviderOutput
func (*Provider) ToProviderOutputWithContext ¶
func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutput
type ProviderArgs ¶
type ProviderArgs struct { }
The set of arguments for constructing a Provider resource.
func (ProviderArgs) ElementType ¶
func (ProviderArgs) ElementType() reflect.Type
type ProviderInput ¶
type ProviderInput interface { pulumi.Input ToProviderOutput() ProviderOutput ToProviderOutputWithContext(ctx context.Context) ProviderOutput }
type ProviderOutput ¶
type ProviderOutput struct{ *pulumi.OutputState }
func (ProviderOutput) ElementType ¶
func (ProviderOutput) ElementType() reflect.Type
func (ProviderOutput) ToProviderOutput ¶
func (o ProviderOutput) ToProviderOutput() ProviderOutput
func (ProviderOutput) ToProviderOutputWithContext ¶
func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput