published on Tuesday, Apr 21, 2026 by Pulumi
published on Tuesday, Apr 21, 2026 by Pulumi
Resource for managing Harness Chaos Action Templates. Action templates define reusable actions that can be used in chaos experiments.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
// ============================================================================
// Harness Chaos Action Template Resource Examples
// ============================================================================
//
// Action templates define reusable actions for chaos experiments.
// These examples are based on TESTED configurations from the e2e-test suite.
//
// Key Points:
// - Actions can be delay, script, or container type
// - Runtime inputs with defaults: "<+input>.default('value')"
// - Container actions support full Kubernetes pod configuration
// ============================================================================
// ----------------------------------------------------------------------------
// Example 1: Container Action with Runtime Inputs (TESTED ✅)
// ----------------------------------------------------------------------------
// Most common pattern: container action with runtime inputs and defaults
const containerWithRuntimeInputs = new harness.chaos.ActionTemplate("container_with_runtime_inputs", {
orgId: _this.id,
projectId: thisHarnessPlatformProject.id,
hubIdentity: projectLevel.identity,
identity: "container-action-template",
name: "Container Action Template",
description: "Container action with runtime inputs and defaults",
type: "container",
infrastructureType: "<+input>.default('Kubernetes')",
tags: [
"container",
"kubernetes",
"runtime-inputs",
],
containerAction: {
image: "<+input>.default('busybox:latest')",
commands: ["<+input>.default('sh')"],
args: "echo 'Running container action'; sleep 15",
namespace: "<+input>.default('default')",
nodeSelector: {
disktype: "ssd",
zone: "us-west-1a",
},
labels: {
app: "chaos-action",
environment: "production",
"managed-by": "terraform",
},
annotations: {
description: "Chaos container action",
owner: "chaos-team",
},
envs: [
{
name: "TEST_VAR",
value: "<+input>.default('test_value')",
},
{
name: "ANOTHER_VAR",
value: "<+input>.default('another_value')",
},
],
resources: {
limits: {
cpu: "500m",
memory: "512Mi",
},
requests: {
cpu: "250m",
memory: "256Mi",
},
},
},
runProperties: {
timeout: "<+input>.default('60s')",
interval: "<+input>.default('15s')",
},
variables: [
{
name: "container_image",
value: "<+input>",
type: "string",
required: true,
description: "Container image to use (runtime input)",
},
{
name: "namespace",
value: "<+input>",
type: "string",
required: false,
description: "Kubernetes namespace (runtime input)",
},
],
}, {
dependsOn: [projectLevel],
});
// ----------------------------------------------------------------------------
// Example 2: Simple Delay Action (TESTED ✅)
// ----------------------------------------------------------------------------
// Delay action for adding wait time in experiments
const delayAction = new harness.chaos.ActionTemplate("delay_action", {
orgId: _this.id,
projectId: thisHarnessPlatformProject.id,
hubIdentity: projectLevel.identity,
identity: "delay-action-template",
name: "Delay Action Template",
description: "Simple delay action for wait time",
type: "delay",
infrastructureType: "Kubernetes",
tags: [
"delay",
"wait",
],
delayAction: {
duration: "<+input>.default('30s')",
},
runProperties: {
timeout: "60s",
},
}, {
dependsOn: [projectLevel],
});
// ----------------------------------------------------------------------------
// Example 3: Script Action (TESTED ✅)
// ----------------------------------------------------------------------------
// Custom script action for flexible operations
const scriptAction = new harness.chaos.ActionTemplate("script_action", {
orgId: _this.id,
projectId: thisHarnessPlatformProject.id,
hubIdentity: projectLevel.identity,
identity: "script-action-template",
name: "Script Action Template",
description: "Custom script action for chaos operations",
type: "script",
infrastructureType: "<+input>.default('Kubernetes')",
tags: [
"script",
"custom",
],
customScriptAction: {
script: `#!/bin/bash
echo \\"Running custom chaos script\\"
echo \\"Target: <+input>\\"
sleep 10
echo \\"Script completed\\"
`,
shell: "bash",
envs: [{
name: "TARGET",
value: "<+input>.default('default-target')",
}],
},
runProperties: {
timeout: "<+input>.default('120s')",
interval: "30s",
},
variables: [{
name: "target_resource",
value: "<+input>",
type: "string",
required: true,
description: "Target resource for the script",
}],
}, {
dependsOn: [projectLevel],
});
import pulumi
import pulumi_harness as harness
# ============================================================================
# Harness Chaos Action Template Resource Examples
# ============================================================================
#
# Action templates define reusable actions for chaos experiments.
# These examples are based on TESTED configurations from the e2e-test suite.
#
# Key Points:
# - Actions can be delay, script, or container type
# - Runtime inputs with defaults: "<+input>.default('value')"
# - Container actions support full Kubernetes pod configuration
# ============================================================================
# ----------------------------------------------------------------------------
# Example 1: Container Action with Runtime Inputs (TESTED ✅)
# ----------------------------------------------------------------------------
# Most common pattern: container action with runtime inputs and defaults
container_with_runtime_inputs = harness.chaos.ActionTemplate("container_with_runtime_inputs",
org_id=this["id"],
project_id=this_harness_platform_project["id"],
hub_identity=project_level["identity"],
identity="container-action-template",
name="Container Action Template",
description="Container action with runtime inputs and defaults",
type="container",
infrastructure_type="<+input>.default('Kubernetes')",
tags=[
"container",
"kubernetes",
"runtime-inputs",
],
container_action={
"image": "<+input>.default('busybox:latest')",
"commands": ["<+input>.default('sh')"],
"args": "echo 'Running container action'; sleep 15",
"namespace": "<+input>.default('default')",
"node_selector": {
"disktype": "ssd",
"zone": "us-west-1a",
},
"labels": {
"app": "chaos-action",
"environment": "production",
"managed-by": "terraform",
},
"annotations": {
"description": "Chaos container action",
"owner": "chaos-team",
},
"envs": [
{
"name": "TEST_VAR",
"value": "<+input>.default('test_value')",
},
{
"name": "ANOTHER_VAR",
"value": "<+input>.default('another_value')",
},
],
"resources": {
"limits": {
"cpu": "500m",
"memory": "512Mi",
},
"requests": {
"cpu": "250m",
"memory": "256Mi",
},
},
},
run_properties={
"timeout": "<+input>.default('60s')",
"interval": "<+input>.default('15s')",
},
variables=[
{
"name": "container_image",
"value": "<+input>",
"type": "string",
"required": True,
"description": "Container image to use (runtime input)",
},
{
"name": "namespace",
"value": "<+input>",
"type": "string",
"required": False,
"description": "Kubernetes namespace (runtime input)",
},
],
opts = pulumi.ResourceOptions(depends_on=[project_level]))
# ----------------------------------------------------------------------------
# Example 2: Simple Delay Action (TESTED ✅)
# ----------------------------------------------------------------------------
# Delay action for adding wait time in experiments
delay_action = harness.chaos.ActionTemplate("delay_action",
org_id=this["id"],
project_id=this_harness_platform_project["id"],
hub_identity=project_level["identity"],
identity="delay-action-template",
name="Delay Action Template",
description="Simple delay action for wait time",
type="delay",
infrastructure_type="Kubernetes",
tags=[
"delay",
"wait",
],
delay_action={
"duration": "<+input>.default('30s')",
},
run_properties={
"timeout": "60s",
},
opts = pulumi.ResourceOptions(depends_on=[project_level]))
# ----------------------------------------------------------------------------
# Example 3: Script Action (TESTED ✅)
# ----------------------------------------------------------------------------
# Custom script action for flexible operations
script_action = harness.chaos.ActionTemplate("script_action",
org_id=this["id"],
project_id=this_harness_platform_project["id"],
hub_identity=project_level["identity"],
identity="script-action-template",
name="Script Action Template",
description="Custom script action for chaos operations",
type="script",
infrastructure_type="<+input>.default('Kubernetes')",
tags=[
"script",
"custom",
],
custom_script_action={
"script": """#!/bin/bash
echo \"Running custom chaos script\"
echo \"Target: <+input>\"
sleep 10
echo \"Script completed\"
""",
"shell": "bash",
"envs": [{
"name": "TARGET",
"value": "<+input>.default('default-target')",
}],
},
run_properties={
"timeout": "<+input>.default('120s')",
"interval": "30s",
},
variables=[{
"name": "target_resource",
"value": "<+input>",
"type": "string",
"required": True,
"description": "Target resource for the script",
}],
opts = pulumi.ResourceOptions(depends_on=[project_level]))
package main
import (
"github.com/pulumi/pulumi-harness/sdk/go/harness/chaos"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// ============================================================================
// Harness Chaos Action Template Resource Examples
// ============================================================================
//
// Action templates define reusable actions for chaos experiments.
// These examples are based on TESTED configurations from the e2e-test suite.
//
// Key Points:
// - Actions can be delay, script, or container type
// - Runtime inputs with defaults: "<+input>.default('value')"
// - Container actions support full Kubernetes pod configuration
// ============================================================================
// ----------------------------------------------------------------------------
// Example 1: Container Action with Runtime Inputs (TESTED ✅)
// ----------------------------------------------------------------------------
// Most common pattern: container action with runtime inputs and defaults
_, err := chaos.NewActionTemplate(ctx, "container_with_runtime_inputs", &chaos.ActionTemplateArgs{
OrgId: pulumi.Any(this.Id),
ProjectId: pulumi.Any(thisHarnessPlatformProject.Id),
HubIdentity: pulumi.Any(projectLevel.Identity),
Identity: pulumi.String("container-action-template"),
Name: pulumi.String("Container Action Template"),
Description: pulumi.String("Container action with runtime inputs and defaults"),
Type: pulumi.String("container"),
InfrastructureType: pulumi.String("<+input>.default('Kubernetes')"),
Tags: pulumi.StringArray{
pulumi.String("container"),
pulumi.String("kubernetes"),
pulumi.String("runtime-inputs"),
},
ContainerAction: &chaos.ActionTemplateContainerActionArgs{
Image: pulumi.String("<+input>.default('busybox:latest')"),
Commands: pulumi.StringArray{
pulumi.String("<+input>.default('sh')"),
},
Args: pulumi.String("echo 'Running container action'; sleep 15"),
Namespace: pulumi.String("<+input>.default('default')"),
NodeSelector: pulumi.StringMap{
"disktype": pulumi.String("ssd"),
"zone": pulumi.String("us-west-1a"),
},
Labels: pulumi.StringMap{
"app": pulumi.String("chaos-action"),
"environment": pulumi.String("production"),
"managed-by": pulumi.String("terraform"),
},
Annotations: pulumi.StringMap{
"description": pulumi.String("Chaos container action"),
"owner": pulumi.String("chaos-team"),
},
Envs: chaos.ActionTemplateContainerActionEnvArray{
&chaos.ActionTemplateContainerActionEnvArgs{
Name: pulumi.String("TEST_VAR"),
Value: pulumi.String("<+input>.default('test_value')"),
},
&chaos.ActionTemplateContainerActionEnvArgs{
Name: pulumi.String("ANOTHER_VAR"),
Value: pulumi.String("<+input>.default('another_value')"),
},
},
Resources: &chaos.ActionTemplateContainerActionResourcesArgs{
Limits: pulumi.StringMap{
"cpu": pulumi.String("500m"),
"memory": pulumi.String("512Mi"),
},
Requests: pulumi.StringMap{
"cpu": pulumi.String("250m"),
"memory": pulumi.String("256Mi"),
},
},
},
RunProperties: &chaos.ActionTemplateRunPropertiesArgs{
Timeout: pulumi.String("<+input>.default('60s')"),
Interval: pulumi.String("<+input>.default('15s')"),
},
Variables: chaos.ActionTemplateVariableArray{
&chaos.ActionTemplateVariableArgs{
Name: pulumi.String("container_image"),
Value: pulumi.String("<+input>"),
Type: pulumi.String("string"),
Required: pulumi.Bool(true),
Description: pulumi.String("Container image to use (runtime input)"),
},
&chaos.ActionTemplateVariableArgs{
Name: pulumi.String("namespace"),
Value: pulumi.String("<+input>"),
Type: pulumi.String("string"),
Required: pulumi.Bool(false),
Description: pulumi.String("Kubernetes namespace (runtime input)"),
},
},
}, pulumi.DependsOn([]pulumi.Resource{
projectLevel,
}))
if err != nil {
return err
}
// ----------------------------------------------------------------------------
// Example 2: Simple Delay Action (TESTED ✅)
// ----------------------------------------------------------------------------
// Delay action for adding wait time in experiments
_, err = chaos.NewActionTemplate(ctx, "delay_action", &chaos.ActionTemplateArgs{
OrgId: pulumi.Any(this.Id),
ProjectId: pulumi.Any(thisHarnessPlatformProject.Id),
HubIdentity: pulumi.Any(projectLevel.Identity),
Identity: pulumi.String("delay-action-template"),
Name: pulumi.String("Delay Action Template"),
Description: pulumi.String("Simple delay action for wait time"),
Type: pulumi.String("delay"),
InfrastructureType: pulumi.String("Kubernetes"),
Tags: pulumi.StringArray{
pulumi.String("delay"),
pulumi.String("wait"),
},
DelayAction: &chaos.ActionTemplateDelayActionArgs{
Duration: pulumi.String("<+input>.default('30s')"),
},
RunProperties: &chaos.ActionTemplateRunPropertiesArgs{
Timeout: pulumi.String("60s"),
},
}, pulumi.DependsOn([]pulumi.Resource{
projectLevel,
}))
if err != nil {
return err
}
// ----------------------------------------------------------------------------
// Example 3: Script Action (TESTED ✅)
// ----------------------------------------------------------------------------
// Custom script action for flexible operations
_, err = chaos.NewActionTemplate(ctx, "script_action", &chaos.ActionTemplateArgs{
OrgId: pulumi.Any(this.Id),
ProjectId: pulumi.Any(thisHarnessPlatformProject.Id),
HubIdentity: pulumi.Any(projectLevel.Identity),
Identity: pulumi.String("script-action-template"),
Name: pulumi.String("Script Action Template"),
Description: pulumi.String("Custom script action for chaos operations"),
Type: pulumi.String("script"),
InfrastructureType: pulumi.String("<+input>.default('Kubernetes')"),
Tags: pulumi.StringArray{
pulumi.String("script"),
pulumi.String("custom"),
},
CustomScriptAction: &chaos.ActionTemplateCustomScriptActionArgs{
Script: `#!/bin/bash
echo \"Running custom chaos script\"
echo \"Target: <+input>\"
sleep 10
echo \"Script completed\"
`,
Shell: "bash",
Envs: chaos.ActionTemplateCustomScriptActionEnvArray{
&chaos.ActionTemplateCustomScriptActionEnvArgs{
Name: pulumi.String("TARGET"),
Value: pulumi.String("<+input>.default('default-target')"),
},
},
},
RunProperties: &chaos.ActionTemplateRunPropertiesArgs{
Timeout: pulumi.String("<+input>.default('120s')"),
Interval: pulumi.String("30s"),
},
Variables: chaos.ActionTemplateVariableArray{
&chaos.ActionTemplateVariableArgs{
Name: pulumi.String("target_resource"),
Value: pulumi.String("<+input>"),
Type: pulumi.String("string"),
Required: pulumi.Bool(true),
Description: pulumi.String("Target resource for the script"),
},
},
}, pulumi.DependsOn([]pulumi.Resource{
projectLevel,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() =>
{
// ============================================================================
// Harness Chaos Action Template Resource Examples
// ============================================================================
//
// Action templates define reusable actions for chaos experiments.
// These examples are based on TESTED configurations from the e2e-test suite.
//
// Key Points:
// - Actions can be delay, script, or container type
// - Runtime inputs with defaults: "<+input>.default('value')"
// - Container actions support full Kubernetes pod configuration
// ============================================================================
// ----------------------------------------------------------------------------
// Example 1: Container Action with Runtime Inputs (TESTED ✅)
// ----------------------------------------------------------------------------
// Most common pattern: container action with runtime inputs and defaults
var containerWithRuntimeInputs = new Harness.Chaos.ActionTemplate("container_with_runtime_inputs", new()
{
OrgId = @this.Id,
ProjectId = thisHarnessPlatformProject.Id,
HubIdentity = projectLevel.Identity,
Identity = "container-action-template",
Name = "Container Action Template",
Description = "Container action with runtime inputs and defaults",
Type = "container",
InfrastructureType = "<+input>.default('Kubernetes')",
Tags = new[]
{
"container",
"kubernetes",
"runtime-inputs",
},
ContainerAction = new Harness.Chaos.Inputs.ActionTemplateContainerActionArgs
{
Image = "<+input>.default('busybox:latest')",
Commands = new[]
{
"<+input>.default('sh')",
},
Args = "echo 'Running container action'; sleep 15",
Namespace = "<+input>.default('default')",
NodeSelector =
{
{ "disktype", "ssd" },
{ "zone", "us-west-1a" },
},
Labels =
{
{ "app", "chaos-action" },
{ "environment", "production" },
{ "managed-by", "terraform" },
},
Annotations =
{
{ "description", "Chaos container action" },
{ "owner", "chaos-team" },
},
Envs = new[]
{
new Harness.Chaos.Inputs.ActionTemplateContainerActionEnvArgs
{
Name = "TEST_VAR",
Value = "<+input>.default('test_value')",
},
new Harness.Chaos.Inputs.ActionTemplateContainerActionEnvArgs
{
Name = "ANOTHER_VAR",
Value = "<+input>.default('another_value')",
},
},
Resources = new Harness.Chaos.Inputs.ActionTemplateContainerActionResourcesArgs
{
Limits =
{
{ "cpu", "500m" },
{ "memory", "512Mi" },
},
Requests =
{
{ "cpu", "250m" },
{ "memory", "256Mi" },
},
},
},
RunProperties = new Harness.Chaos.Inputs.ActionTemplateRunPropertiesArgs
{
Timeout = "<+input>.default('60s')",
Interval = "<+input>.default('15s')",
},
Variables = new[]
{
new Harness.Chaos.Inputs.ActionTemplateVariableArgs
{
Name = "container_image",
Value = "<+input>",
Type = "string",
Required = true,
Description = "Container image to use (runtime input)",
},
new Harness.Chaos.Inputs.ActionTemplateVariableArgs
{
Name = "namespace",
Value = "<+input>",
Type = "string",
Required = false,
Description = "Kubernetes namespace (runtime input)",
},
},
}, new CustomResourceOptions
{
DependsOn =
{
projectLevel,
},
});
// ----------------------------------------------------------------------------
// Example 2: Simple Delay Action (TESTED ✅)
// ----------------------------------------------------------------------------
// Delay action for adding wait time in experiments
var delayAction = new Harness.Chaos.ActionTemplate("delay_action", new()
{
OrgId = @this.Id,
ProjectId = thisHarnessPlatformProject.Id,
HubIdentity = projectLevel.Identity,
Identity = "delay-action-template",
Name = "Delay Action Template",
Description = "Simple delay action for wait time",
Type = "delay",
InfrastructureType = "Kubernetes",
Tags = new[]
{
"delay",
"wait",
},
DelayAction = new Harness.Chaos.Inputs.ActionTemplateDelayActionArgs
{
Duration = "<+input>.default('30s')",
},
RunProperties = new Harness.Chaos.Inputs.ActionTemplateRunPropertiesArgs
{
Timeout = "60s",
},
}, new CustomResourceOptions
{
DependsOn =
{
projectLevel,
},
});
// ----------------------------------------------------------------------------
// Example 3: Script Action (TESTED ✅)
// ----------------------------------------------------------------------------
// Custom script action for flexible operations
var scriptAction = new Harness.Chaos.ActionTemplate("script_action", new()
{
OrgId = @this.Id,
ProjectId = thisHarnessPlatformProject.Id,
HubIdentity = projectLevel.Identity,
Identity = "script-action-template",
Name = "Script Action Template",
Description = "Custom script action for chaos operations",
Type = "script",
InfrastructureType = "<+input>.default('Kubernetes')",
Tags = new[]
{
"script",
"custom",
},
CustomScriptAction = new Harness.Chaos.Inputs.ActionTemplateCustomScriptActionArgs
{
Script = @"#!/bin/bash
echo \""Running custom chaos script\""
echo \""Target: <+input>\""
sleep 10
echo \""Script completed\""
",
Shell = "bash",
Envs = new[]
{
new Harness.Chaos.Inputs.ActionTemplateCustomScriptActionEnvArgs
{
Name = "TARGET",
Value = "<+input>.default('default-target')",
},
},
},
RunProperties = new Harness.Chaos.Inputs.ActionTemplateRunPropertiesArgs
{
Timeout = "<+input>.default('120s')",
Interval = "30s",
},
Variables = new[]
{
new Harness.Chaos.Inputs.ActionTemplateVariableArgs
{
Name = "target_resource",
Value = "<+input>",
Type = "string",
Required = true,
Description = "Target resource for the script",
},
},
}, new CustomResourceOptions
{
DependsOn =
{
projectLevel,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.chaos.ActionTemplate;
import com.pulumi.harness.chaos.ActionTemplateArgs;
import com.pulumi.harness.chaos.inputs.ActionTemplateContainerActionArgs;
import com.pulumi.harness.chaos.inputs.ActionTemplateContainerActionResourcesArgs;
import com.pulumi.harness.chaos.inputs.ActionTemplateRunPropertiesArgs;
import com.pulumi.harness.chaos.inputs.ActionTemplateVariableArgs;
import com.pulumi.harness.chaos.inputs.ActionTemplateDelayActionArgs;
import com.pulumi.harness.chaos.inputs.ActionTemplateCustomScriptActionArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
// ============================================================================
// Harness Chaos Action Template Resource Examples
// ============================================================================
//
// Action templates define reusable actions for chaos experiments.
// These examples are based on TESTED configurations from the e2e-test suite.
//
// Key Points:
// - Actions can be delay, script, or container type
// - Runtime inputs with defaults: "<+input>.default('value')"
// - Container actions support full Kubernetes pod configuration
// ============================================================================
// ----------------------------------------------------------------------------
// Example 1: Container Action with Runtime Inputs (TESTED ✅)
// ----------------------------------------------------------------------------
// Most common pattern: container action with runtime inputs and defaults
var containerWithRuntimeInputs = new ActionTemplate("containerWithRuntimeInputs", ActionTemplateArgs.builder()
.orgId(this_.id())
.projectId(thisHarnessPlatformProject.id())
.hubIdentity(projectLevel.identity())
.identity("container-action-template")
.name("Container Action Template")
.description("Container action with runtime inputs and defaults")
.type("container")
.infrastructureType("<+input>.default('Kubernetes')")
.tags(
"container",
"kubernetes",
"runtime-inputs")
.containerAction(ActionTemplateContainerActionArgs.builder()
.image("<+input>.default('busybox:latest')")
.commands("<+input>.default('sh')")
.args("echo 'Running container action'; sleep 15")
.namespace("<+input>.default('default')")
.nodeSelector(Map.ofEntries(
Map.entry("disktype", "ssd"),
Map.entry("zone", "us-west-1a")
))
.labels(Map.ofEntries(
Map.entry("app", "chaos-action"),
Map.entry("environment", "production"),
Map.entry("managed-by", "terraform")
))
.annotations(Map.ofEntries(
Map.entry("description", "Chaos container action"),
Map.entry("owner", "chaos-team")
))
.envs(
ActionTemplateContainerActionEnvArgs.builder()
.name("TEST_VAR")
.value("<+input>.default('test_value')")
.build(),
ActionTemplateContainerActionEnvArgs.builder()
.name("ANOTHER_VAR")
.value("<+input>.default('another_value')")
.build())
.resources(ActionTemplateContainerActionResourcesArgs.builder()
.limits(Map.ofEntries(
Map.entry("cpu", "500m"),
Map.entry("memory", "512Mi")
))
.requests(Map.ofEntries(
Map.entry("cpu", "250m"),
Map.entry("memory", "256Mi")
))
.build())
.build())
.runProperties(ActionTemplateRunPropertiesArgs.builder()
.timeout("<+input>.default('60s')")
.interval("<+input>.default('15s')")
.build())
.variables(
ActionTemplateVariableArgs.builder()
.name("container_image")
.value("<+input>")
.type("string")
.required(true)
.description("Container image to use (runtime input)")
.build(),
ActionTemplateVariableArgs.builder()
.name("namespace")
.value("<+input>")
.type("string")
.required(false)
.description("Kubernetes namespace (runtime input)")
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(projectLevel)
.build());
// ----------------------------------------------------------------------------
// Example 2: Simple Delay Action (TESTED ✅)
// ----------------------------------------------------------------------------
// Delay action for adding wait time in experiments
var delayAction = new ActionTemplate("delayAction", ActionTemplateArgs.builder()
.orgId(this_.id())
.projectId(thisHarnessPlatformProject.id())
.hubIdentity(projectLevel.identity())
.identity("delay-action-template")
.name("Delay Action Template")
.description("Simple delay action for wait time")
.type("delay")
.infrastructureType("Kubernetes")
.tags(
"delay",
"wait")
.delayAction(ActionTemplateDelayActionArgs.builder()
.duration("<+input>.default('30s')")
.build())
.runProperties(ActionTemplateRunPropertiesArgs.builder()
.timeout("60s")
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(projectLevel)
.build());
// ----------------------------------------------------------------------------
// Example 3: Script Action (TESTED ✅)
// ----------------------------------------------------------------------------
// Custom script action for flexible operations
var scriptAction = new ActionTemplate("scriptAction", ActionTemplateArgs.builder()
.orgId(this_.id())
.projectId(thisHarnessPlatformProject.id())
.hubIdentity(projectLevel.identity())
.identity("script-action-template")
.name("Script Action Template")
.description("Custom script action for chaos operations")
.type("script")
.infrastructureType("<+input>.default('Kubernetes')")
.tags(
"script",
"custom")
.customScriptAction(ActionTemplateCustomScriptActionArgs.builder()
.script("""
#!/bin/bash
echo \"Running custom chaos script\"
echo \"Target: <+input>\"
sleep 10
echo \"Script completed\"
""")
.shell("bash")
.envs(ActionTemplateCustomScriptActionEnvArgs.builder()
.name("TARGET")
.value("<+input>.default('default-target')")
.build())
.build())
.runProperties(ActionTemplateRunPropertiesArgs.builder()
.timeout("<+input>.default('120s')")
.interval("30s")
.build())
.variables(ActionTemplateVariableArgs.builder()
.name("target_resource")
.value("<+input>")
.type("string")
.required(true)
.description("Target resource for the script")
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(projectLevel)
.build());
}
}
resources:
# ============================================================================
# Harness Chaos Action Template Resource Examples
# ============================================================================
#
# Action templates define reusable actions for chaos experiments.
# These examples are based on TESTED configurations from the e2e-test suite.
#
# Key Points:
# - Actions can be delay, script, or container type
# - Runtime inputs with defaults: "<+input>.default('value')"
# - Container actions support full Kubernetes pod configuration
# ============================================================================
# ----------------------------------------------------------------------------
# Example 1: Container Action with Runtime Inputs (TESTED ✅)
# ----------------------------------------------------------------------------
# Most common pattern: container action with runtime inputs and defaults
containerWithRuntimeInputs:
type: harness:chaos:ActionTemplate
name: container_with_runtime_inputs
properties:
orgId: ${this.id}
projectId: ${thisHarnessPlatformProject.id}
hubIdentity: ${projectLevel.identity}
identity: container-action-template
name: Container Action Template
description: Container action with runtime inputs and defaults
type: container
infrastructureType: <+input>.default('Kubernetes')
tags:
- container
- kubernetes
- runtime-inputs
containerAction:
image: <+input>.default('busybox:latest')
commands:
- <+input>.default('sh')
args: echo 'Running container action'; sleep 15
namespace: <+input>.default('default')
nodeSelector:
disktype: ssd
zone: us-west-1a
labels:
app: chaos-action
environment: production
managed-by: terraform
annotations:
description: Chaos container action
owner: chaos-team
envs:
- name: TEST_VAR
value: <+input>.default('test_value')
- name: ANOTHER_VAR
value: <+input>.default('another_value')
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 250m
memory: 256Mi
runProperties:
timeout: <+input>.default('60s')
interval: <+input>.default('15s')
variables:
- name: container_image
value: <+input>
type: string
required: true
description: Container image to use (runtime input)
- name: namespace
value: <+input>
type: string
required: false
description: Kubernetes namespace (runtime input)
options:
dependsOn:
- ${projectLevel}
# ----------------------------------------------------------------------------
# Example 2: Simple Delay Action (TESTED ✅)
# ----------------------------------------------------------------------------
# Delay action for adding wait time in experiments
delayAction:
type: harness:chaos:ActionTemplate
name: delay_action
properties:
orgId: ${this.id}
projectId: ${thisHarnessPlatformProject.id}
hubIdentity: ${projectLevel.identity}
identity: delay-action-template
name: Delay Action Template
description: Simple delay action for wait time
type: delay
infrastructureType: Kubernetes
tags:
- delay
- wait
delayAction:
duration: <+input>.default('30s')
runProperties:
timeout: 60s
options:
dependsOn:
- ${projectLevel}
# ----------------------------------------------------------------------------
# Example 3: Script Action (TESTED ✅)
# ----------------------------------------------------------------------------
# Custom script action for flexible operations
scriptAction:
type: harness:chaos:ActionTemplate
name: script_action
properties:
orgId: ${this.id}
projectId: ${thisHarnessPlatformProject.id}
hubIdentity: ${projectLevel.identity}
identity: script-action-template
name: Script Action Template
description: Custom script action for chaos operations
type: script
infrastructureType: <+input>.default('Kubernetes')
tags:
- script
- custom
customScriptAction:
script: |
#!/bin/bash
echo \"Running custom chaos script\"
echo \"Target: <+input>\"
sleep 10
echo \"Script completed\"
shell: bash
envs:
- name: TARGET
value: <+input>.default('default-target')
runProperties:
timeout: <+input>.default('120s')
interval: 30s
variables:
- name: target_resource
value: <+input>
type: string
required: true
description: Target resource for the script
options:
dependsOn:
- ${projectLevel}
Create ActionTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ActionTemplate(name: string, args: ActionTemplateArgs, opts?: CustomResourceOptions);@overload
def ActionTemplate(resource_name: str,
args: ActionTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ActionTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
hub_identity: Optional[str] = None,
type: Optional[str] = None,
identity: Optional[str] = None,
infrastructure_type: Optional[str] = None,
description: Optional[str] = None,
delay_action: Optional[ActionTemplateDelayActionArgs] = None,
container_action: Optional[ActionTemplateContainerActionArgs] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
run_properties: Optional[ActionTemplateRunPropertiesArgs] = None,
tags: Optional[Sequence[str]] = None,
custom_script_action: Optional[ActionTemplateCustomScriptActionArgs] = None,
variables: Optional[Sequence[ActionTemplateVariableArgs]] = None)func NewActionTemplate(ctx *Context, name string, args ActionTemplateArgs, opts ...ResourceOption) (*ActionTemplate, error)public ActionTemplate(string name, ActionTemplateArgs args, CustomResourceOptions? opts = null)
public ActionTemplate(String name, ActionTemplateArgs args)
public ActionTemplate(String name, ActionTemplateArgs args, CustomResourceOptions options)
type: harness:chaos:ActionTemplate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ActionTemplateArgs
- 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 ActionTemplateArgs
- 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 ActionTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ActionTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ActionTemplateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ActionTemplate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ActionTemplate resource accepts the following input properties:
- Hub
Identity string - Identity of the chaos hub this action template belongs to.
- Identity string
- Unique identifier for the action template (immutable).
- Type string
- Type of the action template. Valid values: delay, customScript, container.
- Container
Action ActionTemplate Container Action - Container action configuration. Required when type is 'container'.
- Custom
Script ActionAction Template Custom Script Action - Custom script action configuration. Required when type is 'customScript'.
- Delay
Action ActionTemplate Delay Action - Delay action configuration. Required when type is 'delay'.
- Description string
- Description of the action template.
- Infrastructure
Type string - Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
- Name string
- Name of the action template.
- Org
Id string - Organization identifier.
- Project
Id string - Project identifier.
- Run
Properties ActionTemplate Run Properties - Run properties for the action template execution.
- List<string>
- Tags to associate with the action template.
- Variables
List<Action
Template Variable> - Template variables that can be used in the action.
- Hub
Identity string - Identity of the chaos hub this action template belongs to.
- Identity string
- Unique identifier for the action template (immutable).
- Type string
- Type of the action template. Valid values: delay, customScript, container.
- Container
Action ActionTemplate Container Action Args - Container action configuration. Required when type is 'container'.
- Custom
Script ActionAction Template Custom Script Action Args - Custom script action configuration. Required when type is 'customScript'.
- Delay
Action ActionTemplate Delay Action Args - Delay action configuration. Required when type is 'delay'.
- Description string
- Description of the action template.
- Infrastructure
Type string - Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
- Name string
- Name of the action template.
- Org
Id string - Organization identifier.
- Project
Id string - Project identifier.
- Run
Properties ActionTemplate Run Properties Args - Run properties for the action template execution.
- []string
- Tags to associate with the action template.
- Variables
[]Action
Template Variable Args - Template variables that can be used in the action.
- hub
Identity String - Identity of the chaos hub this action template belongs to.
- identity String
- Unique identifier for the action template (immutable).
- type String
- Type of the action template. Valid values: delay, customScript, container.
- container
Action ActionTemplate Container Action - Container action configuration. Required when type is 'container'.
- custom
Script ActionAction Template Custom Script Action - Custom script action configuration. Required when type is 'customScript'.
- delay
Action ActionTemplate Delay Action - Delay action configuration. Required when type is 'delay'.
- description String
- Description of the action template.
- infrastructure
Type String - Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
- name String
- Name of the action template.
- org
Id String - Organization identifier.
- project
Id String - Project identifier.
- run
Properties ActionTemplate Run Properties - Run properties for the action template execution.
- List<String>
- Tags to associate with the action template.
- variables
List<Action
Template Variable> - Template variables that can be used in the action.
- hub
Identity string - Identity of the chaos hub this action template belongs to.
- identity string
- Unique identifier for the action template (immutable).
- type string
- Type of the action template. Valid values: delay, customScript, container.
- container
Action ActionTemplate Container Action - Container action configuration. Required when type is 'container'.
- custom
Script ActionAction Template Custom Script Action - Custom script action configuration. Required when type is 'customScript'.
- delay
Action ActionTemplate Delay Action - Delay action configuration. Required when type is 'delay'.
- description string
- Description of the action template.
- infrastructure
Type string - Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
- name string
- Name of the action template.
- org
Id string - Organization identifier.
- project
Id string - Project identifier.
- run
Properties ActionTemplate Run Properties - Run properties for the action template execution.
- string[]
- Tags to associate with the action template.
- variables
Action
Template Variable[] - Template variables that can be used in the action.
- hub_
identity str - Identity of the chaos hub this action template belongs to.
- identity str
- Unique identifier for the action template (immutable).
- type str
- Type of the action template. Valid values: delay, customScript, container.
- container_
action ActionTemplate Container Action Args - Container action configuration. Required when type is 'container'.
- custom_
script_ Actionaction Template Custom Script Action Args - Custom script action configuration. Required when type is 'customScript'.
- delay_
action ActionTemplate Delay Action Args - Delay action configuration. Required when type is 'delay'.
- description str
- Description of the action template.
- infrastructure_
type str - Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
- name str
- Name of the action template.
- org_
id str - Organization identifier.
- project_
id str - Project identifier.
- run_
properties ActionTemplate Run Properties Args - Run properties for the action template execution.
- Sequence[str]
- Tags to associate with the action template.
- variables
Sequence[Action
Template Variable Args] - Template variables that can be used in the action.
- hub
Identity String - Identity of the chaos hub this action template belongs to.
- identity String
- Unique identifier for the action template (immutable).
- type String
- Type of the action template. Valid values: delay, customScript, container.
- container
Action Property Map - Container action configuration. Required when type is 'container'.
- custom
Script Property MapAction - Custom script action configuration. Required when type is 'customScript'.
- delay
Action Property Map - Delay action configuration. Required when type is 'delay'.
- description String
- Description of the action template.
- infrastructure
Type String - Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
- name String
- Name of the action template.
- org
Id String - Organization identifier.
- project
Id String - Project identifier.
- run
Properties Property Map - Run properties for the action template execution.
- List<String>
- Tags to associate with the action template.
- variables List<Property Map>
- Template variables that can be used in the action.
Outputs
All input properties are implicitly available as output properties. Additionally, the ActionTemplate resource produces the following output properties:
- Account
Id string - Account identifier.
- Created
At int - Creation timestamp (Unix epoch).
- Created
By string - User who created the action template.
- Id string
- The provider-assigned unique ID for this managed resource.
- Id
Internal string - Internal ID of the action template.
- Is
Default bool - Whether this is the default version for predefined actions.
- Is
Enterprise bool - Whether this is an enterprise action template.
- Is
Removed bool - Whether the action template has been removed.
- Revision int
- Revision number of the action template.
- Template string
- Template content/definition.
- Updated
At int - Last update timestamp (Unix epoch).
- Updated
By string - User who last updated the action template.
- Account
Id string - Account identifier.
- Created
At int - Creation timestamp (Unix epoch).
- Created
By string - User who created the action template.
- Id string
- The provider-assigned unique ID for this managed resource.
- Id
Internal string - Internal ID of the action template.
- Is
Default bool - Whether this is the default version for predefined actions.
- Is
Enterprise bool - Whether this is an enterprise action template.
- Is
Removed bool - Whether the action template has been removed.
- Revision int
- Revision number of the action template.
- Template string
- Template content/definition.
- Updated
At int - Last update timestamp (Unix epoch).
- Updated
By string - User who last updated the action template.
- account
Id String - Account identifier.
- created
At Integer - Creation timestamp (Unix epoch).
- created
By String - User who created the action template.
- id String
- The provider-assigned unique ID for this managed resource.
- id
Internal String - Internal ID of the action template.
- is
Default Boolean - Whether this is the default version for predefined actions.
- is
Enterprise Boolean - Whether this is an enterprise action template.
- is
Removed Boolean - Whether the action template has been removed.
- revision Integer
- Revision number of the action template.
- template String
- Template content/definition.
- updated
At Integer - Last update timestamp (Unix epoch).
- updated
By String - User who last updated the action template.
- account
Id string - Account identifier.
- created
At number - Creation timestamp (Unix epoch).
- created
By string - User who created the action template.
- id string
- The provider-assigned unique ID for this managed resource.
- id
Internal string - Internal ID of the action template.
- is
Default boolean - Whether this is the default version for predefined actions.
- is
Enterprise boolean - Whether this is an enterprise action template.
- is
Removed boolean - Whether the action template has been removed.
- revision number
- Revision number of the action template.
- template string
- Template content/definition.
- updated
At number - Last update timestamp (Unix epoch).
- updated
By string - User who last updated the action template.
- account_
id str - Account identifier.
- created_
at int - Creation timestamp (Unix epoch).
- created_
by str - User who created the action template.
- id str
- The provider-assigned unique ID for this managed resource.
- id_
internal str - Internal ID of the action template.
- is_
default bool - Whether this is the default version for predefined actions.
- is_
enterprise bool - Whether this is an enterprise action template.
- is_
removed bool - Whether the action template has been removed.
- revision int
- Revision number of the action template.
- template str
- Template content/definition.
- updated_
at int - Last update timestamp (Unix epoch).
- updated_
by str - User who last updated the action template.
- account
Id String - Account identifier.
- created
At Number - Creation timestamp (Unix epoch).
- created
By String - User who created the action template.
- id String
- The provider-assigned unique ID for this managed resource.
- id
Internal String - Internal ID of the action template.
- is
Default Boolean - Whether this is the default version for predefined actions.
- is
Enterprise Boolean - Whether this is an enterprise action template.
- is
Removed Boolean - Whether the action template has been removed.
- revision Number
- Revision number of the action template.
- template String
- Template content/definition.
- updated
At Number - Last update timestamp (Unix epoch).
- updated
By String - User who last updated the action template.
Look up Existing ActionTemplate Resource
Get an existing ActionTemplate 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?: ActionTemplateState, opts?: CustomResourceOptions): ActionTemplate@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
container_action: Optional[ActionTemplateContainerActionArgs] = None,
created_at: Optional[int] = None,
created_by: Optional[str] = None,
custom_script_action: Optional[ActionTemplateCustomScriptActionArgs] = None,
delay_action: Optional[ActionTemplateDelayActionArgs] = None,
description: Optional[str] = None,
hub_identity: Optional[str] = None,
id_internal: Optional[str] = None,
identity: Optional[str] = None,
infrastructure_type: Optional[str] = None,
is_default: Optional[bool] = None,
is_enterprise: Optional[bool] = None,
is_removed: Optional[bool] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
revision: Optional[int] = None,
run_properties: Optional[ActionTemplateRunPropertiesArgs] = None,
tags: Optional[Sequence[str]] = None,
template: Optional[str] = None,
type: Optional[str] = None,
updated_at: Optional[int] = None,
updated_by: Optional[str] = None,
variables: Optional[Sequence[ActionTemplateVariableArgs]] = None) -> ActionTemplatefunc GetActionTemplate(ctx *Context, name string, id IDInput, state *ActionTemplateState, opts ...ResourceOption) (*ActionTemplate, error)public static ActionTemplate Get(string name, Input<string> id, ActionTemplateState? state, CustomResourceOptions? opts = null)public static ActionTemplate get(String name, Output<String> id, ActionTemplateState state, CustomResourceOptions options)resources: _: type: harness:chaos:ActionTemplate get: id: ${id}- 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.
- 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.
- Account
Id string - Account identifier.
- Container
Action ActionTemplate Container Action - Container action configuration. Required when type is 'container'.
- Created
At int - Creation timestamp (Unix epoch).
- Created
By string - User who created the action template.
- Custom
Script ActionAction Template Custom Script Action - Custom script action configuration. Required when type is 'customScript'.
- Delay
Action ActionTemplate Delay Action - Delay action configuration. Required when type is 'delay'.
- Description string
- Description of the action template.
- Hub
Identity string - Identity of the chaos hub this action template belongs to.
- Id
Internal string - Internal ID of the action template.
- Identity string
- Unique identifier for the action template (immutable).
- Infrastructure
Type string - Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
- Is
Default bool - Whether this is the default version for predefined actions.
- Is
Enterprise bool - Whether this is an enterprise action template.
- Is
Removed bool - Whether the action template has been removed.
- Name string
- Name of the action template.
- Org
Id string - Organization identifier.
- Project
Id string - Project identifier.
- Revision int
- Revision number of the action template.
- Run
Properties ActionTemplate Run Properties - Run properties for the action template execution.
- List<string>
- Tags to associate with the action template.
- Template string
- Template content/definition.
- Type string
- Type of the action template. Valid values: delay, customScript, container.
- Updated
At int - Last update timestamp (Unix epoch).
- Updated
By string - User who last updated the action template.
- Variables
List<Action
Template Variable> - Template variables that can be used in the action.
- Account
Id string - Account identifier.
- Container
Action ActionTemplate Container Action Args - Container action configuration. Required when type is 'container'.
- Created
At int - Creation timestamp (Unix epoch).
- Created
By string - User who created the action template.
- Custom
Script ActionAction Template Custom Script Action Args - Custom script action configuration. Required when type is 'customScript'.
- Delay
Action ActionTemplate Delay Action Args - Delay action configuration. Required when type is 'delay'.
- Description string
- Description of the action template.
- Hub
Identity string - Identity of the chaos hub this action template belongs to.
- Id
Internal string - Internal ID of the action template.
- Identity string
- Unique identifier for the action template (immutable).
- Infrastructure
Type string - Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
- Is
Default bool - Whether this is the default version for predefined actions.
- Is
Enterprise bool - Whether this is an enterprise action template.
- Is
Removed bool - Whether the action template has been removed.
- Name string
- Name of the action template.
- Org
Id string - Organization identifier.
- Project
Id string - Project identifier.
- Revision int
- Revision number of the action template.
- Run
Properties ActionTemplate Run Properties Args - Run properties for the action template execution.
- []string
- Tags to associate with the action template.
- Template string
- Template content/definition.
- Type string
- Type of the action template. Valid values: delay, customScript, container.
- Updated
At int - Last update timestamp (Unix epoch).
- Updated
By string - User who last updated the action template.
- Variables
[]Action
Template Variable Args - Template variables that can be used in the action.
- account
Id String - Account identifier.
- container
Action ActionTemplate Container Action - Container action configuration. Required when type is 'container'.
- created
At Integer - Creation timestamp (Unix epoch).
- created
By String - User who created the action template.
- custom
Script ActionAction Template Custom Script Action - Custom script action configuration. Required when type is 'customScript'.
- delay
Action ActionTemplate Delay Action - Delay action configuration. Required when type is 'delay'.
- description String
- Description of the action template.
- hub
Identity String - Identity of the chaos hub this action template belongs to.
- id
Internal String - Internal ID of the action template.
- identity String
- Unique identifier for the action template (immutable).
- infrastructure
Type String - Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
- is
Default Boolean - Whether this is the default version for predefined actions.
- is
Enterprise Boolean - Whether this is an enterprise action template.
- is
Removed Boolean - Whether the action template has been removed.
- name String
- Name of the action template.
- org
Id String - Organization identifier.
- project
Id String - Project identifier.
- revision Integer
- Revision number of the action template.
- run
Properties ActionTemplate Run Properties - Run properties for the action template execution.
- List<String>
- Tags to associate with the action template.
- template String
- Template content/definition.
- type String
- Type of the action template. Valid values: delay, customScript, container.
- updated
At Integer - Last update timestamp (Unix epoch).
- updated
By String - User who last updated the action template.
- variables
List<Action
Template Variable> - Template variables that can be used in the action.
- account
Id string - Account identifier.
- container
Action ActionTemplate Container Action - Container action configuration. Required when type is 'container'.
- created
At number - Creation timestamp (Unix epoch).
- created
By string - User who created the action template.
- custom
Script ActionAction Template Custom Script Action - Custom script action configuration. Required when type is 'customScript'.
- delay
Action ActionTemplate Delay Action - Delay action configuration. Required when type is 'delay'.
- description string
- Description of the action template.
- hub
Identity string - Identity of the chaos hub this action template belongs to.
- id
Internal string - Internal ID of the action template.
- identity string
- Unique identifier for the action template (immutable).
- infrastructure
Type string - Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
- is
Default boolean - Whether this is the default version for predefined actions.
- is
Enterprise boolean - Whether this is an enterprise action template.
- is
Removed boolean - Whether the action template has been removed.
- name string
- Name of the action template.
- org
Id string - Organization identifier.
- project
Id string - Project identifier.
- revision number
- Revision number of the action template.
- run
Properties ActionTemplate Run Properties - Run properties for the action template execution.
- string[]
- Tags to associate with the action template.
- template string
- Template content/definition.
- type string
- Type of the action template. Valid values: delay, customScript, container.
- updated
At number - Last update timestamp (Unix epoch).
- updated
By string - User who last updated the action template.
- variables
Action
Template Variable[] - Template variables that can be used in the action.
- account_
id str - Account identifier.
- container_
action ActionTemplate Container Action Args - Container action configuration. Required when type is 'container'.
- created_
at int - Creation timestamp (Unix epoch).
- created_
by str - User who created the action template.
- custom_
script_ Actionaction Template Custom Script Action Args - Custom script action configuration. Required when type is 'customScript'.
- delay_
action ActionTemplate Delay Action Args - Delay action configuration. Required when type is 'delay'.
- description str
- Description of the action template.
- hub_
identity str - Identity of the chaos hub this action template belongs to.
- id_
internal str - Internal ID of the action template.
- identity str
- Unique identifier for the action template (immutable).
- infrastructure_
type str - Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
- is_
default bool - Whether this is the default version for predefined actions.
- is_
enterprise bool - Whether this is an enterprise action template.
- is_
removed bool - Whether the action template has been removed.
- name str
- Name of the action template.
- org_
id str - Organization identifier.
- project_
id str - Project identifier.
- revision int
- Revision number of the action template.
- run_
properties ActionTemplate Run Properties Args - Run properties for the action template execution.
- Sequence[str]
- Tags to associate with the action template.
- template str
- Template content/definition.
- type str
- Type of the action template. Valid values: delay, customScript, container.
- updated_
at int - Last update timestamp (Unix epoch).
- updated_
by str - User who last updated the action template.
- variables
Sequence[Action
Template Variable Args] - Template variables that can be used in the action.
- account
Id String - Account identifier.
- container
Action Property Map - Container action configuration. Required when type is 'container'.
- created
At Number - Creation timestamp (Unix epoch).
- created
By String - User who created the action template.
- custom
Script Property MapAction - Custom script action configuration. Required when type is 'customScript'.
- delay
Action Property Map - Delay action configuration. Required when type is 'delay'.
- description String
- Description of the action template.
- hub
Identity String - Identity of the chaos hub this action template belongs to.
- id
Internal String - Internal ID of the action template.
- identity String
- Unique identifier for the action template (immutable).
- infrastructure
Type String - Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
- is
Default Boolean - Whether this is the default version for predefined actions.
- is
Enterprise Boolean - Whether this is an enterprise action template.
- is
Removed Boolean - Whether the action template has been removed.
- name String
- Name of the action template.
- org
Id String - Organization identifier.
- project
Id String - Project identifier.
- revision Number
- Revision number of the action template.
- run
Properties Property Map - Run properties for the action template execution.
- List<String>
- Tags to associate with the action template.
- template String
- Template content/definition.
- type String
- Type of the action template. Valid values: delay, customScript, container.
- updated
At Number - Last update timestamp (Unix epoch).
- updated
By String - User who last updated the action template.
- variables List<Property Map>
- Template variables that can be used in the action.
Supporting Types
ActionTemplateContainerAction, ActionTemplateContainerActionArgs
- Image string
- Container image to use (e.g., 'busybox:latest').
- Annotations Dictionary<string, string>
- Annotations to apply to the container pod.
- Args string
- Arguments to pass to the container command.
- Commands List<string>
- Command to run in the container.
- Envs
List<Action
Template Container Action Env> - Environment variables for the container.
- Host
Ipc bool - Use host IPC namespace.
- Host
Network bool - Use host network namespace.
- Host
Pid bool - Use host PID namespace.
- Image
Pull stringPolicy - Image pull policy (Always, IfNotPresent, Never). Supports runtime inputs like <+input>.allowedValues(...).
- Image
Pull List<string>Secrets - List of image pull secrets for private registries.
- Labels Dictionary<string, string>
- Labels to apply to the container pod.
- Namespace string
- Kubernetes namespace for the container.
- Node
Selector Dictionary<string, string> - Node selector for pod scheduling.
- Resources
Action
Template Container Action Resources - Resource requirements for the container.
- Service
Account stringName - Kubernetes service account name.
- Tolerations
List<Action
Template Container Action Toleration> - Tolerations for pod scheduling on tainted nodes.
- Volume
Mounts List<ActionTemplate Container Action Volume Mount> - Volume mounts for the container.
- Volumes
List<Action
Template Container Action Volume> - Volumes to attach to the pod.
- Image string
- Container image to use (e.g., 'busybox:latest').
- Annotations map[string]string
- Annotations to apply to the container pod.
- Args string
- Arguments to pass to the container command.
- Commands []string
- Command to run in the container.
- Envs
[]Action
Template Container Action Env - Environment variables for the container.
- Host
Ipc bool - Use host IPC namespace.
- Host
Network bool - Use host network namespace.
- Host
Pid bool - Use host PID namespace.
- Image
Pull stringPolicy - Image pull policy (Always, IfNotPresent, Never). Supports runtime inputs like <+input>.allowedValues(...).
- Image
Pull []stringSecrets - List of image pull secrets for private registries.
- Labels map[string]string
- Labels to apply to the container pod.
- Namespace string
- Kubernetes namespace for the container.
- Node
Selector map[string]string - Node selector for pod scheduling.
- Resources
Action
Template Container Action Resources - Resource requirements for the container.
- Service
Account stringName - Kubernetes service account name.
- Tolerations
[]Action
Template Container Action Toleration - Tolerations for pod scheduling on tainted nodes.
- Volume
Mounts []ActionTemplate Container Action Volume Mount - Volume mounts for the container.
- Volumes
[]Action
Template Container Action Volume - Volumes to attach to the pod.
- image String
- Container image to use (e.g., 'busybox:latest').
- annotations Map<String,String>
- Annotations to apply to the container pod.
- args String
- Arguments to pass to the container command.
- commands List<String>
- Command to run in the container.
- envs
List<Action
Template Container Action Env> - Environment variables for the container.
- host
Ipc Boolean - Use host IPC namespace.
- host
Network Boolean - Use host network namespace.
- host
Pid Boolean - Use host PID namespace.
- image
Pull StringPolicy - Image pull policy (Always, IfNotPresent, Never). Supports runtime inputs like <+input>.allowedValues(...).
- image
Pull List<String>Secrets - List of image pull secrets for private registries.
- labels Map<String,String>
- Labels to apply to the container pod.
- namespace String
- Kubernetes namespace for the container.
- node
Selector Map<String,String> - Node selector for pod scheduling.
- resources
Action
Template Container Action Resources - Resource requirements for the container.
- service
Account StringName - Kubernetes service account name.
- tolerations
List<Action
Template Container Action Toleration> - Tolerations for pod scheduling on tainted nodes.
- volume
Mounts List<ActionTemplate Container Action Volume Mount> - Volume mounts for the container.
- volumes
List<Action
Template Container Action Volume> - Volumes to attach to the pod.
- image string
- Container image to use (e.g., 'busybox:latest').
- annotations {[key: string]: string}
- Annotations to apply to the container pod.
- args string
- Arguments to pass to the container command.
- commands string[]
- Command to run in the container.
- envs
Action
Template Container Action Env[] - Environment variables for the container.
- host
Ipc boolean - Use host IPC namespace.
- host
Network boolean - Use host network namespace.
- host
Pid boolean - Use host PID namespace.
- image
Pull stringPolicy - Image pull policy (Always, IfNotPresent, Never). Supports runtime inputs like <+input>.allowedValues(...).
- image
Pull string[]Secrets - List of image pull secrets for private registries.
- labels {[key: string]: string}
- Labels to apply to the container pod.
- namespace string
- Kubernetes namespace for the container.
- node
Selector {[key: string]: string} - Node selector for pod scheduling.
- resources
Action
Template Container Action Resources - Resource requirements for the container.
- service
Account stringName - Kubernetes service account name.
- tolerations
Action
Template Container Action Toleration[] - Tolerations for pod scheduling on tainted nodes.
- volume
Mounts ActionTemplate Container Action Volume Mount[] - Volume mounts for the container.
- volumes
Action
Template Container Action Volume[] - Volumes to attach to the pod.
- image str
- Container image to use (e.g., 'busybox:latest').
- annotations Mapping[str, str]
- Annotations to apply to the container pod.
- args str
- Arguments to pass to the container command.
- commands Sequence[str]
- Command to run in the container.
- envs
Sequence[Action
Template Container Action Env] - Environment variables for the container.
- host_
ipc bool - Use host IPC namespace.
- host_
network bool - Use host network namespace.
- host_
pid bool - Use host PID namespace.
- image_
pull_ strpolicy - Image pull policy (Always, IfNotPresent, Never). Supports runtime inputs like <+input>.allowedValues(...).
- image_
pull_ Sequence[str]secrets - List of image pull secrets for private registries.
- labels Mapping[str, str]
- Labels to apply to the container pod.
- namespace str
- Kubernetes namespace for the container.
- node_
selector Mapping[str, str] - Node selector for pod scheduling.
- resources
Action
Template Container Action Resources - Resource requirements for the container.
- service_
account_ strname - Kubernetes service account name.
- tolerations
Sequence[Action
Template Container Action Toleration] - Tolerations for pod scheduling on tainted nodes.
- volume_
mounts Sequence[ActionTemplate Container Action Volume Mount] - Volume mounts for the container.
- volumes
Sequence[Action
Template Container Action Volume] - Volumes to attach to the pod.
- image String
- Container image to use (e.g., 'busybox:latest').
- annotations Map<String>
- Annotations to apply to the container pod.
- args String
- Arguments to pass to the container command.
- commands List<String>
- Command to run in the container.
- envs List<Property Map>
- Environment variables for the container.
- host
Ipc Boolean - Use host IPC namespace.
- host
Network Boolean - Use host network namespace.
- host
Pid Boolean - Use host PID namespace.
- image
Pull StringPolicy - Image pull policy (Always, IfNotPresent, Never). Supports runtime inputs like <+input>.allowedValues(...).
- image
Pull List<String>Secrets - List of image pull secrets for private registries.
- labels Map<String>
- Labels to apply to the container pod.
- namespace String
- Kubernetes namespace for the container.
- node
Selector Map<String> - Node selector for pod scheduling.
- resources Property Map
- Resource requirements for the container.
- service
Account StringName - Kubernetes service account name.
- tolerations List<Property Map>
- Tolerations for pod scheduling on tainted nodes.
- volume
Mounts List<Property Map> - Volume mounts for the container.
- volumes List<Property Map>
- Volumes to attach to the pod.
ActionTemplateContainerActionEnv, ActionTemplateContainerActionEnvArgs
ActionTemplateContainerActionResources, ActionTemplateContainerActionResourcesArgs
ActionTemplateContainerActionToleration, ActionTemplateContainerActionTolerationArgs
- Effect string
- Taint effect (NoSchedule, PreferNoSchedule, NoExecute).
- Key string
- Taint key to tolerate.
- Operator string
- Operator (Exists, Equal).
- Toleration
Seconds int - Toleration seconds for NoExecute effect.
- Value string
- Taint value to tolerate.
- Effect string
- Taint effect (NoSchedule, PreferNoSchedule, NoExecute).
- Key string
- Taint key to tolerate.
- Operator string
- Operator (Exists, Equal).
- Toleration
Seconds int - Toleration seconds for NoExecute effect.
- Value string
- Taint value to tolerate.
- effect String
- Taint effect (NoSchedule, PreferNoSchedule, NoExecute).
- key String
- Taint key to tolerate.
- operator String
- Operator (Exists, Equal).
- toleration
Seconds Integer - Toleration seconds for NoExecute effect.
- value String
- Taint value to tolerate.
- effect string
- Taint effect (NoSchedule, PreferNoSchedule, NoExecute).
- key string
- Taint key to tolerate.
- operator string
- Operator (Exists, Equal).
- toleration
Seconds number - Toleration seconds for NoExecute effect.
- value string
- Taint value to tolerate.
- effect str
- Taint effect (NoSchedule, PreferNoSchedule, NoExecute).
- key str
- Taint key to tolerate.
- operator str
- Operator (Exists, Equal).
- toleration_
seconds int - Toleration seconds for NoExecute effect.
- value str
- Taint value to tolerate.
- effect String
- Taint effect (NoSchedule, PreferNoSchedule, NoExecute).
- key String
- Taint key to tolerate.
- operator String
- Operator (Exists, Equal).
- toleration
Seconds Number - Toleration seconds for NoExecute effect.
- value String
- Taint value to tolerate.
ActionTemplateContainerActionVolume, ActionTemplateContainerActionVolumeArgs
- Name string
- Volume name.
- Config
Map ActionTemplate Container Action Volume Config Map - ConfigMap volume configuration.
- Empty
Dir ActionTemplate Container Action Volume Empty Dir - EmptyDir volume configuration.
- Host
Path ActionTemplate Container Action Volume Host Path - HostPath volume configuration.
- Persistent
Volume ActionClaim Template Container Action Volume Persistent Volume Claim - PersistentVolumeClaim configuration.
- Secret
Action
Template Container Action Volume Secret - Secret volume configuration.
- Name string
- Volume name.
- Config
Map ActionTemplate Container Action Volume Config Map - ConfigMap volume configuration.
- Empty
Dir ActionTemplate Container Action Volume Empty Dir - EmptyDir volume configuration.
- Host
Path ActionTemplate Container Action Volume Host Path - HostPath volume configuration.
- Persistent
Volume ActionClaim Template Container Action Volume Persistent Volume Claim - PersistentVolumeClaim configuration.
- Secret
Action
Template Container Action Volume Secret - Secret volume configuration.
- name String
- Volume name.
- config
Map ActionTemplate Container Action Volume Config Map - ConfigMap volume configuration.
- empty
Dir ActionTemplate Container Action Volume Empty Dir - EmptyDir volume configuration.
- host
Path ActionTemplate Container Action Volume Host Path - HostPath volume configuration.
- persistent
Volume ActionClaim Template Container Action Volume Persistent Volume Claim - PersistentVolumeClaim configuration.
- secret
Action
Template Container Action Volume Secret - Secret volume configuration.
- name string
- Volume name.
- config
Map ActionTemplate Container Action Volume Config Map - ConfigMap volume configuration.
- empty
Dir ActionTemplate Container Action Volume Empty Dir - EmptyDir volume configuration.
- host
Path ActionTemplate Container Action Volume Host Path - HostPath volume configuration.
- persistent
Volume ActionClaim Template Container Action Volume Persistent Volume Claim - PersistentVolumeClaim configuration.
- secret
Action
Template Container Action Volume Secret - Secret volume configuration.
- name str
- Volume name.
- config_
map ActionTemplate Container Action Volume Config Map - ConfigMap volume configuration.
- empty_
dir ActionTemplate Container Action Volume Empty Dir - EmptyDir volume configuration.
- host_
path ActionTemplate Container Action Volume Host Path - HostPath volume configuration.
- persistent_
volume_ Actionclaim Template Container Action Volume Persistent Volume Claim - PersistentVolumeClaim configuration.
- secret
Action
Template Container Action Volume Secret - Secret volume configuration.
- name String
- Volume name.
- config
Map Property Map - ConfigMap volume configuration.
- empty
Dir Property Map - EmptyDir volume configuration.
- host
Path Property Map - HostPath volume configuration.
- persistent
Volume Property MapClaim - PersistentVolumeClaim configuration.
- secret Property Map
- Secret volume configuration.
ActionTemplateContainerActionVolumeConfigMap, ActionTemplateContainerActionVolumeConfigMapArgs
ActionTemplateContainerActionVolumeEmptyDir, ActionTemplateContainerActionVolumeEmptyDirArgs
- medium str
- Storage medium (empty string for default, Memory for tmpfs).
- size_
limit str - Size limit (e.g., '1Gi').
ActionTemplateContainerActionVolumeHostPath, ActionTemplateContainerActionVolumeHostPathArgs
ActionTemplateContainerActionVolumeMount, ActionTemplateContainerActionVolumeMountArgs
- mount_
path str - Path to mount the volume in the container.
- name str
- Volume name to mount.
- read_
only bool - Mount as read-only.
- sub_
path str - Sub-path within the volume.
ActionTemplateContainerActionVolumePersistentVolumeClaim, ActionTemplateContainerActionVolumePersistentVolumeClaimArgs
- claim_
name str - PVC name.
- read_
only bool - Mount as read-only.
ActionTemplateContainerActionVolumeSecret, ActionTemplateContainerActionVolumeSecretArgs
- Secret
Name string - Secret name.
- Optional bool
- Whether the Secret is optional.
- Secret
Name string - Secret name.
- Optional bool
- Whether the Secret is optional.
- secret
Name String - Secret name.
- optional Boolean
- Whether the Secret is optional.
- secret
Name string - Secret name.
- optional boolean
- Whether the Secret is optional.
- secret_
name str - Secret name.
- optional bool
- Whether the Secret is optional.
- secret
Name String - Secret name.
- optional Boolean
- Whether the Secret is optional.
ActionTemplateCustomScriptAction, ActionTemplateCustomScriptActionArgs
- Command string
- Command to execute (e.g., 'bash', 'python', 'sh').
- Args List<string>
- Arguments to pass to the command.
- Envs
List<Action
Template Custom Script Action Env> - Environment variables for the script.
- Command string
- Command to execute (e.g., 'bash', 'python', 'sh').
- Args []string
- Arguments to pass to the command.
- Envs
[]Action
Template Custom Script Action Env - Environment variables for the script.
- command String
- Command to execute (e.g., 'bash', 'python', 'sh').
- args List<String>
- Arguments to pass to the command.
- envs
List<Action
Template Custom Script Action Env> - Environment variables for the script.
- command string
- Command to execute (e.g., 'bash', 'python', 'sh').
- args string[]
- Arguments to pass to the command.
- envs
Action
Template Custom Script Action Env[] - Environment variables for the script.
- command str
- Command to execute (e.g., 'bash', 'python', 'sh').
- args Sequence[str]
- Arguments to pass to the command.
- envs
Sequence[Action
Template Custom Script Action Env] - Environment variables for the script.
- command String
- Command to execute (e.g., 'bash', 'python', 'sh').
- args List<String>
- Arguments to pass to the command.
- envs List<Property Map>
- Environment variables for the script.
ActionTemplateCustomScriptActionEnv, ActionTemplateCustomScriptActionEnvArgs
ActionTemplateDelayAction, ActionTemplateDelayActionArgs
- Duration string
- Duration of the delay (e.g., '30s', '5m', '1h').
- Duration string
- Duration of the delay (e.g., '30s', '5m', '1h').
- duration String
- Duration of the delay (e.g., '30s', '5m', '1h').
- duration string
- Duration of the delay (e.g., '30s', '5m', '1h').
- duration str
- Duration of the delay (e.g., '30s', '5m', '1h').
- duration String
- Duration of the delay (e.g., '30s', '5m', '1h').
ActionTemplateRunProperties, ActionTemplateRunPropertiesArgs
- Initial
Delay string - Initial delay before action execution (e.g., '5s', '1m').
- Interval string
- Interval between retries (e.g., '10s', '30s').
- Max
Retries int - Maximum number of retries.
- Stop
On boolFailure - Whether to stop on failure.
- Timeout string
- Timeout for action execution (e.g., '5m', '10m').
- Verbosity string
- Verbosity level for logging.
- Initial
Delay string - Initial delay before action execution (e.g., '5s', '1m').
- Interval string
- Interval between retries (e.g., '10s', '30s').
- Max
Retries int - Maximum number of retries.
- Stop
On boolFailure - Whether to stop on failure.
- Timeout string
- Timeout for action execution (e.g., '5m', '10m').
- Verbosity string
- Verbosity level for logging.
- initial
Delay String - Initial delay before action execution (e.g., '5s', '1m').
- interval String
- Interval between retries (e.g., '10s', '30s').
- max
Retries Integer - Maximum number of retries.
- stop
On BooleanFailure - Whether to stop on failure.
- timeout String
- Timeout for action execution (e.g., '5m', '10m').
- verbosity String
- Verbosity level for logging.
- initial
Delay string - Initial delay before action execution (e.g., '5s', '1m').
- interval string
- Interval between retries (e.g., '10s', '30s').
- max
Retries number - Maximum number of retries.
- stop
On booleanFailure - Whether to stop on failure.
- timeout string
- Timeout for action execution (e.g., '5m', '10m').
- verbosity string
- Verbosity level for logging.
- initial_
delay str - Initial delay before action execution (e.g., '5s', '1m').
- interval str
- Interval between retries (e.g., '10s', '30s').
- max_
retries int - Maximum number of retries.
- stop_
on_ boolfailure - Whether to stop on failure.
- timeout str
- Timeout for action execution (e.g., '5m', '10m').
- verbosity str
- Verbosity level for logging.
- initial
Delay String - Initial delay before action execution (e.g., '5s', '1m').
- interval String
- Interval between retries (e.g., '10s', '30s').
- max
Retries Number - Maximum number of retries.
- stop
On BooleanFailure - Whether to stop on failure.
- timeout String
- Timeout for action execution (e.g., '5m', '10m').
- verbosity String
- Verbosity level for logging.
ActionTemplateVariable, ActionTemplateVariableArgs
- Name string
- Variable name.
- Value string
- Variable value.
- Description string
- Variable description.
- Required bool
- Whether the variable is required.
- Type string
- Variable type (e.g., 'string', 'number', 'boolean').
- Name string
- Variable name.
- Value string
- Variable value.
- Description string
- Variable description.
- Required bool
- Whether the variable is required.
- Type string
- Variable type (e.g., 'string', 'number', 'boolean').
- name String
- Variable name.
- value String
- Variable value.
- description String
- Variable description.
- required Boolean
- Whether the variable is required.
- type String
- Variable type (e.g., 'string', 'number', 'boolean').
- name string
- Variable name.
- value string
- Variable value.
- description string
- Variable description.
- required boolean
- Whether the variable is required.
- type string
- Variable type (e.g., 'string', 'number', 'boolean').
- name str
- Variable name.
- value str
- Variable value.
- description str
- Variable description.
- required bool
- Whether the variable is required.
- type str
- Variable type (e.g., 'string', 'number', 'boolean').
- name String
- Variable name.
- value String
- Variable value.
- description String
- Variable description.
- required Boolean
- Whether the variable is required.
- type String
- Variable type (e.g., 'string', 'number', 'boolean').
Import
The pulumi import command can be used, for example:
Example 1: Import Project-level Action Template Format: org_id/project_id/hub_identity/template_identity
$ pulumi import harness:chaos/actionTemplate:ActionTemplate example my_org/my_project/my-chaos-hub/delay-action-template
Example 2: Import Org-level Action Template Format: org_id/hub_identity/template_identity
$ pulumi import harness:chaos/actionTemplate:ActionTemplate org_example my_org/org-chaos-hub/org-script-action
Example 3: Import Account-level Action Template Format: hub_identity/template_identity
$ pulumi import harness:chaos/actionTemplate:ActionTemplate account_example account-chaos-hub/account-delay-action
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harnessTerraform Provider.
published on Tuesday, Apr 21, 2026 by Pulumi
