Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

r/aws_fis_experiment_template: Add new action target types #32152

Merged
merged 3 commits into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -801,15 +801,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 @@ -80,7 +80,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
Loading