Skip to content

Commit 769fc3e

Browse files
authored
Add deployment_controller (#1) (#71)
* Add deployment_controller Add support for setting deployment_controller of service
1 parent 6b2c3ce commit 769fc3e

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ No resources.
7272
| <a name="input_default_certificate_arn"></a> [default\_certificate\_arn](#input\_default\_certificate\_arn) | (Optional) The ARN of the default SSL server certificate. Required if var.https\_ports is set. | `string` | `null` | no |
7373
| <a name="input_deployment_maximum_percent"></a> [deployment\_maximum\_percent](#input\_deployment\_maximum\_percent) | (Optional) The upper limit (as a percentage of the service's desiredCount) of the number of running tasks that can be running in a service during a deployment. | `number` | `200` | no |
7474
| <a name="input_deployment_minimum_healthy_percent"></a> [deployment\_minimum\_healthy\_percent](#input\_deployment\_minimum\_healthy\_percent) | (Optional) The lower limit (as a percentage of the service's desiredCount) of the number of running tasks that must remain running and healthy in a service during a deployment. | `number` | `100` | no |
75+
| <a name="input_deployment_controller"></a> [deployment\_controller](#input\_deployment\_controller) | (Optional) Deployment controller. | `list(string)` | `[]` | no |
7576
| <a name="input_desired_count"></a> [desired\_count](#input\_desired\_count) | (Optional) The number of instances of the task definition to place and keep running. Defaults to 0. | `number` | `1` | no |
7677
| <a name="input_disable_networking"></a> [disable\_networking](#input\_disable\_networking) | When this parameter is true, networking is disabled within the container. | `bool` | `null` | no |
7778
| <a name="input_dns_search_domains"></a> [dns\_search\_domains](#input\_dns\_search\_domains) | Container DNS search domains. A list of DNS search domains that are presented to the container | `list(string)` | `[]` | no |

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ module "ecs-fargate-service" {
8484
ecs_cluster_arn = module.ecs-cluster.aws_ecs_cluster_cluster_arn
8585
deployment_maximum_percent = var.deployment_maximum_percent
8686
deployment_minimum_healthy_percent = var.deployment_minimum_healthy_percent
87+
deployment_controller = var.deployment_controller
8788
desired_count = var.desired_count
8889
enable_ecs_managed_tags = var.enable_ecs_managed_tags
8990
enable_execute_command = var.enable_execute_command

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,12 @@ variable "deployment_minimum_healthy_percent" {
411411
default = 100
412412
}
413413

414+
variable "deployment_controller" {
415+
description = "(Optional) Deployment controller"
416+
type = list(string)
417+
default = []
418+
}
419+
414420
variable "desired_count" {
415421
description = "(Optional) The number of instances of the task definition to place and keep running. Defaults to 0."
416422
type = number

0 commit comments

Comments
 (0)