Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
Amazon just launched AWS FIS (Failure Injection Simulator) in GA (blog post). The experiment templates look like a good fit for terraform.
New or Affected Resource(s)
aws_fis_experiment_template
Potential Terraform Configuration
This seems like a pretty complex resource so I've filled out most of the available options, but the structure is very likely not what it should look like in the end.
resource "aws_fis_experiment_template" "main" {
description = "Description of the experiment template."
# Note: This is a list of conditions in the AWS API
stop_condition = {
source = "aws:cloudwatch:alarm"
value = "aws:cloudwatch:arn"
}
# Note: This is a list of targets in the AWS API
target = {
# There are 6 resource types currently
resource_type = "aws:ec2:instance"
resource_arns = [
"arn:to:ec2:instance1",
"arn:to:ec2:instance2",
]
resource_tags = [
{
key = "TagName"
value = "TagValue"
}
]
filters = [
{
path = "string",
values = ["val1", "val2"]
}
]
# One of ALL, count(n), percent(n)
selection_mode = "percent(25)"
}
# Note: this is a list of actions in the AWS API
action {
action_id = "actionId1"
description = "This is an action description."
start_after = [
"actionId2"
]
# List of parameters
parameter {
}
# List of targets
{
}
}
}
References
Community Note
Description
Amazon just launched AWS FIS (Failure Injection Simulator) in GA (blog post). The experiment templates look like a good fit for terraform.
New or Affected Resource(s)
aws_fis_experiment_templatePotential Terraform Configuration
This seems like a pretty complex resource so I've filled out most of the available options, but the structure is very likely not what it should look like in the end.
References