Skip to content

Commit

Permalink
Merge pull request #32152 from lawliet89/fis-experiment-target
Browse files Browse the repository at this point in the history
`r/aws_fis_experiment_template`: Add new action target types
  • Loading branch information
ewbankkit authored Jun 28, 2023
2 parents 59ea1a6 + a5c7016 commit a17ab54
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/32152.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/aws_fis_experiment_template: Add support for `Pods` and `Tasks` to `action.*.target`
```
3 changes: 3 additions & 0 deletions internal/service/fis/experiment_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -969,15 +969,18 @@ func validExperimentTemplateStopConditionSource() schema.SchemaValidateFunc {
}

func validExperimentTemplateActionTargetKey() schema.SchemaValidateFunc {
// See https://docs.aws.amazon.com/fis/latest/userguide/actions.html#action-targets
allowedStopConditionSources := []string{
"Cluster",
"Clusters",
"DBInstances",
"Instances",
"Nodegroups",
"Pods",
"Roles",
"SpotInstances",
"Subnets",
"Tasks",
"Volumes",
}

Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/fis_experiment_template.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ For a list of parameters supported by each action, see [AWS FIS actions referenc

#### `target` (`action.*.target`)

* `key` - (Required) Target type. Valid values are `Cluster` (EKS Cluster), `Clusters` (ECS Clusters), `DBInstances` (RDS DB Instances), `Instances` (EC2 Instances), `Nodegroups` (EKS Node groups), `Roles` (IAM Roles), `SpotInstances` (EC2 Spot Instances), `Subnets` (VPC Subnets), `Volumes` (EBS Volumes).
* `key` - (Required) Target type. Valid values are `Cluster` (EKS Cluster), `Clusters` (ECS Clusters), `DBInstances` (RDS DB Instances), `Instances` (EC2 Instances), `Nodegroups` (EKS Node groups), `Roles` (IAM Roles), `SpotInstances` (EC2 Spot Instances), `Subnets` (VPC Subnets), `Volumes` (EBS Volumes) , `Pods` (EKS Pods), `Tasks` (ECS Tasks). See the [documentation](https://docs.aws.amazon.com/fis/latest/userguide/actions.html#action-targets) for more details.
* `value` - (Required) Target name, referencing a corresponding target.

### `stop_condition`
Expand Down

0 comments on commit a17ab54

Please sign in to comment.