diff --git a/.changelog/39971.txt b/.changelog/39971.txt new file mode 100644 index 00000000000..d91628df045 --- /dev/null +++ b/.changelog/39971.txt @@ -0,0 +1,3 @@ +```release-note:bug +resource/aws_codedeploy_deployment_group: Remove maximum items limit on the `alarm_configuration.alarms` argument +``` diff --git a/internal/service/deploy/deployment_group.go b/internal/service/deploy/deployment_group.go index b0f9763991d..f7b84d423a2 100644 --- a/internal/service/deploy/deployment_group.go +++ b/internal/service/deploy/deployment_group.go @@ -74,7 +74,6 @@ func resourceDeploymentGroup() *schema.Resource { Schema: map[string]*schema.Schema{ "alarms": { Type: schema.TypeSet, - MaxItems: 10, Optional: true, Elem: &schema.Schema{Type: schema.TypeString}, }, diff --git a/website/docs/r/codedeploy_deployment_group.html.markdown b/website/docs/r/codedeploy_deployment_group.html.markdown index 2fe8fcd08e4..4bc280ccf94 100644 --- a/website/docs/r/codedeploy_deployment_group.html.markdown +++ b/website/docs/r/codedeploy_deployment_group.html.markdown @@ -211,7 +211,7 @@ This resource supports the following arguments: You can configure a deployment to stop when a **CloudWatch** alarm detects that a metric has fallen below or exceeded a defined threshold. `alarm_configuration` supports the following: -* `alarms` - (Optional) A list of alarms configured for the deployment group. _A maximum of 10 alarms can be added to a deployment group_. +* `alarms` - (Optional) A list of alarms configured for the deployment group. * `enabled` - (Optional) Indicates whether the alarm configuration is enabled. This option is useful when you want to temporarily deactivate alarm monitoring for a deployment group without having to add the same alarms again later. * `ignore_poll_alarm_failure` - (Optional) Indicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from CloudWatch. The default value is `false`. * `true`: The deployment will proceed even if alarm status information can't be retrieved.