AWS::FIS::ExperimentTemplate - AWS CloudFormation


Specifies an experiment template.

An experiment template includes the following components:

  • Targets: A target can be a specific resource in your AWS environment, or one or more resources that match criteria that you specify, for example, resources that have specific tags.

  • Actions: The actions to carry out on the target. You can specify multiple actions, the duration of each action, and when to start each action during an experiment.

  • Stop conditions: If a stop condition is triggered while an experiment is running, the experiment is automatically stopped. You can define a stop condition as a CloudWatch alarm.

For more information, see Experiment templates in the AWS Fault Injection Simulator User Guide.


To declare this entity in your AWS CloudFormation template, use the following syntax:


{ "Type" : "AWS::FIS::ExperimentTemplate", "Properties" : { "Actions" : {Key : Value, ...}, "Description" : String, "RoleArn" : String, "StopConditions" : [ ExperimentTemplateStopCondition, ... ], "Tags" : {Key : Value, ...}, "Targets" : {Key : Value, ...} } }


Type: AWS::FIS::ExperimentTemplate Properties: Actions: Key : Value Description: String RoleArn: String StopConditions: - ExperimentTemplateStopCondition Tags: Key : Value Targets: Key : Value



The actions for the experiment.

Required: No

Type: Map of ExperimentTemplateAction

Update requires: No interruption


A description for the experiment template.

Required: Yes

Type: String

Maximum: 512

Pattern: [\s\S]+

Update requires: No interruption


The Amazon Resource Name (ARN) of an IAM role that grants the AWS FIS service permission to perform service actions on your behalf.

Required: Yes

Type: String

Minimum: 20

Maximum: 2048

Pattern: [\S]+

Update requires: No interruption


The stop conditions.

Required: Yes

Type: List of ExperimentTemplateStopCondition

Update requires: No interruption


The tags to apply to the experiment template.

Required: Yes

Type: Map of String

Update requires: Replacement


The targets for the experiment.

Required: Yes

Type: Map of ExperimentTemplateTarget

Update requires: No interruption

Return values


When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the experiment template ID.

For more information about using the Ref function, see Ref.


The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.


The ID of the experiment template.