Resource schema for AWS::FIS::ExperimentTemplate
resource "awscc_fis_experiment_template" "example" {
description = "example"
role_arn = var.fis_role_arn
tags = {
"Name" = "example"
}
stop_conditions = [{
source = "none"
}]
actions = {
action_1 = {
name = "example-action"
action_id = "aws:ec2:terminate-instances"
description = "example action"
targets = {
"Instances" = "example-target"
}
}
}
targets = {
example-target = {
name = "example-target"
resource_type = "aws:ec2:instance"
selection_mode = "COUNT(1)"
resource_tags = {
"Name" = "fis"
}
}
}
experiment_options = {
empty_target_resolution_mode = "fail"
}
}
variable "fis_role_arn" {
type = string
description = "Role ARN for FIS"
}
description
(String) A description for the experiment template.role_arn
(String) The Amazon Resource Name (ARN) of an IAM role that grants the AWS FIS service permission to perform service actions on your behalf.stop_conditions
(Attributes List) One or more stop conditions. (see below for nested schema)tags
(Map of String)targets
(Attributes Map) The targets for the experiment. (see below for nested schema)actions
(Attributes Map) The actions for the experiment. (see below for nested schema)experiment_options
(Attributes) (see below for nested schema)log_configuration
(Attributes) (see below for nested schema)experiment_template_id
(String)id
(String) Uniquely identifies the resource.stop_conditions
Required:
source
(String)Optional:
value
(String)targets
Optional:
filters
(Attributes List) (see below for nested schema)parameters
(Map of String)resource_arns
(List of String) The Amazon Resource Names (ARNs) of the target resources.resource_tags
(Map of String)resource_type
(String) The AWS resource type. The resource type must be supported for the specified action.selection_mode
(String) Scopes the identified resources to a specific number of the resources at random, or a percentage of the resources.targets.filters
Required:
path
(String) The attribute path for the filter.values
(List of String) The attribute values for the filter.actions
Optional:
action_id
(String) The ID of the action.description
(String) A description for the action.parameters
(Map of String) The parameters for the action, if applicable.start_after
(List of String) The names of the actions that must be completed before the current action starts.targets
(Map of String) One or more targets for the action.experiment_options
Optional:
account_targeting
(String) The account targeting setting for the experiment template.empty_target_resolution_mode
(String) The target resolution failure mode for the experiment template.log_configuration
Required:
log_schema_version
(Number)Optional:
cloudwatch_logs_configuration
(Attributes) (see below for nested schema)s3_configuration
(Attributes) (see below for nested schema)log_configuration.cloudwatch_logs_configuration
Required:
log_group_arn
(String)log_configuration.s3_configuration
Required:
bucket_name
(String)Optional:
prefix
(String)Import is supported using the following syntax:
$ terraform import awscc_fis_experiment_template.example <resource ID>