Skip to main content

Documentation Index

Fetch the complete documentation index at: https://cdktn.io/docs/llms.txt

Use this file to discover all available pages before exploring further.

The remote-exec provisioner invokes a script on a remote resource after it is created. This can be used to run a configuration management tool, bootstrap into a cluster, etc The remote-exec provisioner requires a connection and supports both ssh and winrm. See remote-exec

Initializer

import "github.com/open-constructs/cdk-terrain-go/cdktn"

&cdktn.RemoteExecProvisioner {
	Type: *string,
	Connection: interface{},
	Inline: *[]*string,
	Script: *string,
	Scripts: *[]*string,
}

Properties

NameTypeDescription
Type*stringNo description.
Connectioninterface{}Most provisioners require access to the remote resource via SSH or WinRM and expect a nested connection block with details about how to connect.
Inline*[]*stringThis is a list of command strings.
Script*stringThis is a path (relative or absolute) to a local script that will be copied to the remote resource and then executed.
Scripts*[]*stringThis is a list of paths (relative or absolute) to local scripts that will be copied to the remote resource and then executed.

TypeRequired

Type *string
  • Type: *string

ConnectionOptional

Connection interface{}
  • Type: interface{}
Most provisioners require access to the remote resource via SSH or WinRM and expect a nested connection block with details about how to connect. A connection must be provided here or in the parent resource.

InlineOptional

Inline *[]*string
  • Type: *[]*string
This is a list of command strings. They are executed in the order they are provided. This cannot be provided with script or scripts.

ScriptOptional

Script *string
  • Type: *string
This is a path (relative or absolute) to a local script that will be copied to the remote resource and then executed. This cannot be provided with inline or scripts.

ScriptsOptional

Scripts *[]*string
  • Type: *[]*string
This is a list of paths (relative or absolute) to local scripts that will be copied to the remote resource and then executed. They are executed in the order they are provided. This cannot be provided with inline or script.