CmdID

CmdID / aws / aws fis

aws fis update-experiment-template

Updates the specified experiment template. AWS CLI reference

1 example 9 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To update an experiment template

The following update-experiment-template example updates the description of the specified experiment template.

aws fis update-experiment-template --id ABCDE1fgHIJkLmNop --description myExperimentTemplateIdentify
--idThe ID of the experiment template.
--descriptionA description for the template.
Its output, shortened
{
    "experimentTemplate": {
        "id": "ABCDE1fgHIJkLmNop",
        "description": "myExperimentTemplate",
        "targets": {
            "Instances-Target-1": {
                "resourceType": "aws:ec2:instance",
                "resourceArns": [
                    "arn:aws:ec2:us-west-2:123456789012:instance/i-12a3b4c56d78e9012"
                ],
                "selectionMode": "ALL"
            }
        },
        "actions": {
            "testaction": {
                "actionId": "aws:ec2:stop-instances",
                "parameters": {},
                "targets": {
                    "Instances": "Instances-Target-1"
                }
            }
        },
        "stopConditions": [
            {
                "source": "none"
            }
        ],
        "creationTime": 1616017191.124,
        "lastUpdateTime": 1616017859.607,
        "roleArn": "arn:aws:iam::123456789012:role/FISRole",
… 5 more lines

For more information, see Update an experiment template in the AWS Fault Injection Simulator User Guide.

Options

9 in the AWS CLI reference
--actionsThe actions for the experiment.
--descriptionA description for the template.
--experiment-optionsThe experiment options for the experiment template.
--experiment-report-configurationThe experiment report configuration for the experiment template.
--idThe ID of the experiment template.
--log-configurationThe configuration for experiment logging.
--role-arnThe Amazon Resource Name (ARN) of an IAM role that grants the FIS service permission to perform service actions on your behalf.
--stop-conditionsThe stop conditions for the experiment.
--targetsThe targets for the experiment.