diff --git a/.changelog/32152.txt b/.changelog/32152.txt new file mode 100644 index 00000000000..73ae6532dbe --- /dev/null +++ b/.changelog/32152.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +resource/aws_fis_experiment_template: Add support for `Pods` and `Tasks` to `action.*.target` +``` diff --git a/internal/service/fis/experiment_template.go b/internal/service/fis/experiment_template.go index 3735ee8ef01..d50f3492de0 100644 --- a/internal/service/fis/experiment_template.go +++ b/internal/service/fis/experiment_template.go @@ -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", } diff --git a/website/docs/r/fis_experiment_template.html.markdown b/website/docs/r/fis_experiment_template.html.markdown index b508c6442f5..1b77142dcc9 100644 --- a/website/docs/r/fis_experiment_template.html.markdown +++ b/website/docs/r/fis_experiment_template.html.markdown @@ -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`