Skip to main content

experiment_templates

Creates, updates, deletes or gets an experiment_template resource or lists experiment_templates in a region

Overview

Nameexperiment_templates
TypeResource
DescriptionResource schema for AWS::FIS::ExperimentTemplate
Idaws.fis.experiment_templates

Fields

NameDatatypeDescription
idstring
descriptionstringA description for the experiment template.
targetsobjectThe targets for the experiment.
actionsobjectThe actions for the experiment.
stop_conditionsarrayOne or more stop conditions.
log_configurationobject
role_arnstringThe Amazon Resource Name (ARN) of an IAM role that grants the AWS FIS service permission to perform service actions on your behalf.
tagsobject
experiment_optionsobject
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTDescription, StopConditions, Targets, RoleArn, Tags, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all experiment_templates in a region.

SELECT
region,
id,
description,
targets,
actions,
stop_conditions,
log_configuration,
role_arn,
tags,
experiment_options
FROM aws.fis.experiment_templates
WHERE region = 'us-east-1';

Gets all properties from an individual experiment_template.

SELECT
region,
id,
description,
targets,
actions,
stop_conditions,
log_configuration,
role_arn,
tags,
experiment_options
FROM aws.fis.experiment_templates
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';

INSERT example

Use the following StackQL query and manifest file to create a new experiment_template resource, using stack-deploy.

/*+ create */
INSERT INTO aws.fis.experiment_templates (
Description,
Targets,
StopConditions,
RoleArn,
Tags,
region
)
SELECT
'{{ Description }}',
'{{ Targets }}',
'{{ StopConditions }}',
'{{ RoleArn }}',
'{{ Tags }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.fis.experiment_templates
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';

Permissions

To operate on the experiment_templates resource, the following permissions are required:

Create

fis:CreateExperimentTemplate,
fis:TagResource,
iam:PassRole

Read

fis:GetExperimentTemplate,
fis:ListTagsForResource

Update

fis:UpdateExperimentTemplate,
fis:TagResource,
fis:UntagResource,
iam:PassRole

Delete

fis:DeleteExperimentTemplate

List

fis:ListExperimentTemplates,
fis:ListTagsForResource