aws fis get-experiment
Gets information about the specified experiment. AWS CLI reference
1 example 1 option Its page in the AWS CLI reference
Examples
To get experiment details
The following get-experiment example gets the details of the specified experiment.
aws fis get-experiment --id ABC12DeFGhI3jKLMNOPIdentify--idThe ID of the experiment.Its output, shortened
{
"experiment": {
"id": "ABC12DeFGhI3jKLMNOP",
"experimentTemplateId": "ABCDE1fgHIJkLmNop",
"roleArn": "arn:aws:iam::123456789012:role/myRole",
"state": {
"status": "completed",
"reason": "Experiment completed."
},
"targets": {
"Instances-Target-1": {
"resourceType": "aws:ec2:instance",
"resourceArns": [
"arn:aws:ec2:us-west-2:123456789012:instance/i-12a3b4c56d78e9012"
],
"selectionMode": "ALL"
}
},
"actions": {
"reboot": {
"actionId": "aws:ec2:reboot-instances",
"parameters": {},
"targets": {
"Instances": "Instances-Target-1"
},
"state": {
"status": "completed",
"reason": "Action was completed."
}
}
… 12 more linesFor more information, see Experiments for AWS FIS in the AWS Fault Injection Simulator User Guide.
Options
--idThe ID of the experiment.