From c91790cc7d04ab017964fd23c00a71f1921c16bc Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Thu, 8 Aug 2019 09:54:10 -0400 Subject: [PATCH] Update docs on aws_cloudwatch_event_target's ecs_target.task_count to say it is required The docs previously said it defaulted to 1 and was optional, but actually omitting the value produced an AWS error: Error: Creating CloudWatch Event Target failed: InvalidParameter: 1 validation error(s) found. - minimum field value of 1, PutTargetsInput.Targets[0].EcsParameters.TaskCount. --- website/docs/r/cloudwatch_event_target.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/r/cloudwatch_event_target.html.markdown b/website/docs/r/cloudwatch_event_target.html.markdown index 64ce5e57038..349a387c916 100644 --- a/website/docs/r/cloudwatch_event_target.html.markdown +++ b/website/docs/r/cloudwatch_event_target.html.markdown @@ -272,7 +272,7 @@ The following arguments are supported: * `launch_type` - (Optional) Specifies the launch type on which your task is running. The launch type that you specify here must match one of the launch type (compatibilities) of the target task. Valid values are EC2 or FARGATE. * `network_configuration` - (Optional) Use this if the ECS task uses the awsvpc network mode. This specifies the VPC subnets and security groups associated with the task, and whether a public IP address is to be used. Required if launch_type is FARGATE because the awsvpc mode is required for Fargate tasks. * `platform_version` - (Optional) Specifies the platform version for the task. Specify only the numeric portion of the platform version, such as 1.1.0. This is used only if LaunchType is FARGATE. For more information about valid platform versions, see [AWS Fargate Platform Versions](http://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html). -* `task_count` - (Optional) The number of tasks to create based on the TaskDefinition. The default is 1. +* `task_count` - (Required) The number of tasks to create based on the TaskDefinition. * `task_definition_arn` - (Required) The ARN of the task definition to use if the event target is an Amazon ECS cluster. `network_configuration` support the following: