You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/core/service/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ Since this module is the closest to the `resources` form, there are a lot of cus
66
66
| <aname="input_load_balancers"></a> [load\_balancers](#input\_load\_balancers)| List of map for load balancers configuration. |`list(any)`|`[]`| no |
67
67
| <aname="input_name"></a> [name](#input\_name)| The service name. |`string`| n/a | yes |
68
68
| <aname="input_network_configuration"></a> [network\_configuration](#input\_network\_configuration)| Map of a network configuration for the service. This parameter is required for task definitions that use the awsvpc network mode to receive their own Elastic Network Interface, and it is not supported for other network modes. [Terraform Docs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_service#network_configuration)|`any`|`null`| no |
69
-
| <aname="input_ordered_placement_strategy"></a> [ordered\_placement\_strategy](#input\_ordered\_placement\_strategy)| List of map of service level strategy rules that are taken into consideration during task placement. List from top to bottom in order of precedence. Max 5. [Terraform Docs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_service#ordered_placement_strategy)|`list(any)`|`[]`| no |
69
+
| <aname="input_ordered_placement_strategy"></a> [ordered\_placement\_strategy](#input\_ordered\_placement\_strategy)| List of map of service level strategy rules that are taken into consideration during task placement. List from top to bottom in order of precedence. Max 5. [Terraform Docs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_service#ordered_placement_strategy)|<pre>list(object({<br/> type = string<br/> field = optional(string)<br/> }))</pre>|`[]`| no |
70
70
| <aname="input_platform_version"></a> [platform\_version](#input\_platform\_version)| The platform version on which to run your service. Only applicable for `launch_type` set to `FARGATE`. Defaults to `LATEST`. [AWS Docs](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html)|`string`|`null`| no |
71
71
| <aname="input_propagate_tags"></a> [propagate\_tags](#input\_propagate\_tags)| Specifies whether to propagate the tags from the task definition or the service to the tasks. The valid values are `SERVICE` and `TASK_DEFINITION`. |`string`|`null`| no |
72
72
| <aname="input_scheduling_strategy"></a> [scheduling\_strategy](#input\_scheduling\_strategy)| The scheduling strategy to use for the service. The valid values are `REPLICA` and `DAEMON`. Fargate Tasks do not support `DAEMON` scheduling strategy. |`string`|`null`| no |
description="List of map of service level strategy rules that are taken into consideration during task placement. List from top to bottom in order of precedence. Max 5. [Terraform Docs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_service#ordered_placement_strategy)"
Copy file name to clipboardExpand all lines: modules/simple/ec2/README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,7 @@ No resources.
71
71
| <aname="input_name"></a> [name](#input\_name)| The service name. |`string`| n/a | yes |
72
72
| <aname="input_network_configuration"></a> [network\_configuration](#input\_network\_configuration)| Map of a network configuration for the service. This parameter is required for task definitions that use the awsvpc network mode to receive their own Elastic Network Interface, and it is not supported for other network modes. [Terraform Docs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_service#network_configuration)|`any`|`null`| no |
73
73
| <aname="input_network_mode"></a> [network\_mode](#input\_network\_mode)| Network mode of the container, valid options are none, bridge, awsvpc, and host |`string`|`"bridge"`| no |
74
+
| <aname="input_ordered_placement_strategy"></a> [ordered\_placement\_strategy](#input\_ordered\_placement\_strategy)| List of map of service level strategy rules that are taken into consideration during task placement. List from top to bottom in order of precedence. Max 5. [Terraform Docs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_service#ordered_placement_strategy)| <pre>list(object({<br/> type = string<br/> field = optional(string)<br/> }))</pre> |`[]`| no |
74
75
| <aname="input_placement_constraints"></a> [placement\_constraints](#input\_placement\_constraints)| Placement constraints for Task Definition. List of map. [Terraform Docs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_task_definition#placement_constraints)| <pre>list(object({<br/> expression = optional(string)<br/> type = string<br/> }))</pre> |`[]`| no |
75
76
| <aname="input_propagate_tags"></a> [propagate\_tags](#input\_propagate\_tags)| Specifies whether to propagate the tags from the task definition or the service to the tasks. The valid values are `SERVICE` and `TASK_DEFINITION`. |`string`|`null`| no |
76
77
| <aname="input_proxy_configuration"></a> [proxy\_configuration](#input\_proxy\_configuration)| The proxy configuration details for the App Mesh proxy. Defined as map argument. [Terraform Docs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_task_definition#proxy_configuration)|`any`|`null`| no |
@@ -83,7 +84,7 @@ No resources.
83
84
| <aname="input_task_volume_configurations"></a> [task\_volume\_configurations](#input\_task\_volume\_configurations)| Volume Block Arguments for Task Definition. List of map. Note that `docker_volume_configuration` should be specified as map argument instead of block. [Terraform Docs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_task_definition#volume)|`list(any)`|`[]`| no |
84
85
| <aname="input_track_latest"></a> [track\_latest](#input\_track\_latest)| Whether should track latest ACTIVE task definition on AWS or the one created with the resource stored in state. |`bool`|`false`| no |
85
86
| <aname="input_volume_configuration"></a> [volume\_configuration](#input\_volume\_configuration)| Configuration for a volume specified in the task definition as a volume that is configured at launch time. Currently, the only supported volume type is an Amazon EBS volume. | <pre>list(object({<br/> name = string<br/> managed_ebs_volume = optional(object({<br/> role_arn = string<br/> encrypted = optional(bool, true)<br/> file_system_type = optional(string)<br/> iops = optional(number)<br/> kms_key_id = optional(string)<br/> size_in_gb = optional(number)<br/> snapshot_id = optional(string)<br/> throughput = optional(number)<br/> volume_type = optional(string)<br/> tag_specifications = optional(list(object({<br/> resource_type = string<br/> propagate_tags = optional(string)<br/> tags = optional(map(string))<br/> })), [])<br/> }))<br/> }))</pre> |`[]`| no |
86
-
| <aname="input_vpc_lattice_configurations"></a> [vpc\_lattice\_configurations](#input\_vpc\_lattice\_configurations)| The VPC Lattice configuration for your service that allows Lattice to connect, secure, and monitor your service across multiple accounts and VPCs | <pre>list(object({<br/> role_arn = string<br/> target_group_arn = string<br/> port_name = string<br/> }))</pre> |`null`| no |
87
+
| <aname="input_vpc_lattice_configurations"></a> [vpc\_lattice\_configurations](#input\_vpc\_lattice\_configurations)| The VPC Lattice configuration for your service that allows Lattice to connect, secure, and monitor your service across multiple accounts and VPCs | <pre>list(object({<br/> role_arn = string<br/> target_group_arn = string<br/> port_name = string<br/> }))</pre> |`[]`| no |
87
88
| <aname="input_wait_for_steady_state"></a> [wait\_for\_steady\_state](#input\_wait\_for\_steady\_state)| If `true`, Terraform will wait for the service to reach a steady state (like aws ecs wait services-stable) before continuing. |`bool`|`null`| no |
description="The VPC Lattice configuration for your service that allows Lattice to connect, secure, and monitor your service across multiple accounts and VPCs"
263
-
default=null
263
+
default=[]
264
264
type=list(object({
265
265
role_arn =string
266
266
target_group_arn =string
@@ -345,3 +345,12 @@ variable "tags" {
345
345
default={}
346
346
type=map(string)
347
347
}
348
+
349
+
variable"ordered_placement_strategy" {
350
+
description="List of map of service level strategy rules that are taken into consideration during task placement. List from top to bottom in order of precedence. Max 5. [Terraform Docs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_service#ordered_placement_strategy)"
Copy file name to clipboardExpand all lines: modules/simple/fargate-spot/README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,7 @@ No resources.
73
73
| <aname="input_memory"></a> [memory](#input\_memory)| Memory for this task |`number`| n/a | yes |
74
74
| <aname="input_name"></a> [name](#input\_name)| The service name. |`string`| n/a | yes |
75
75
| <aname="input_num_of_task_on_demand"></a> [num\_of\_task\_on\_demand](#input\_num\_of\_task\_on\_demand)| The number of task to run on FARGATE on-demand that must run all the time. Note: Changing this number after creation will destroy and recreate the service (downtime). |`number`|`0`| no |
76
+
| <aname="input_ordered_placement_strategy"></a> [ordered\_placement\_strategy](#input\_ordered\_placement\_strategy)| List of map of service level strategy rules that are taken into consideration during task placement. List from top to bottom in order of precedence. Max 5. [Terraform Docs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_service#ordered_placement_strategy)| <pre>list(object({<br/> type = string<br/> field = optional(string)<br/> }))</pre> |`[]`| no |
76
77
| <aname="input_placement_constraints"></a> [placement\_constraints](#input\_placement\_constraints)| Placement constraints for Task Definition. List of map. [Terraform Docs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_task_definition#placement_constraints)| <pre>list(object({<br/> expression = optional(string)<br/> type = string<br/> }))</pre> |`[]`| no |
77
78
| <aname="input_platform_version"></a> [platform\_version](#input\_platform\_version)| The platform version on which to run your service. Defaults to `LATEST`. [AWS Docs](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html)|`string`|`null`| no |
78
79
| <aname="input_propagate_tags"></a> [propagate\_tags](#input\_propagate\_tags)| Specifies whether to propagate the tags from the task definition or the service to the tasks. The valid values are `SERVICE` and `TASK_DEFINITION`. |`string`|`null`| no |
@@ -87,7 +88,7 @@ No resources.
87
88
| <aname="input_track_latest"></a> [track\_latest](#input\_track\_latest)| Whether should track latest ACTIVE task definition on AWS or the one created with the resource stored in state. |`bool`|`false`| no |
88
89
| <aname="input_volume_configuration"></a> [volume\_configuration](#input\_volume\_configuration)| Configuration for a volume specified in the task definition as a volume that is configured at launch time. Currently, the only supported volume type is an Amazon EBS volume. | <pre>list(object({<br/> name = string<br/> managed_ebs_volume = optional(object({<br/> role_arn = string<br/> encrypted = optional(bool, true)<br/> file_system_type = optional(string)<br/> iops = optional(number)<br/> kms_key_id = optional(string)<br/> size_in_gb = optional(number)<br/> snapshot_id = optional(string)<br/> throughput = optional(number)<br/> volume_type = optional(string)<br/> tag_specifications = optional(list(object({<br/> resource_type = string<br/> propagate_tags = optional(string)<br/> tags = optional(map(string))<br/> })), [])<br/> }))<br/> }))</pre> |`[]`| no |
89
90
| <aname="input_volume_configurations"></a> [volume\_configurations](#input\_volume\_configurations)| Volume Block Arguments for Task Definition. List of map. Note that `docker_volume_configuration` should be specified as map argument instead of block. [Terraform Docs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_task_definition#volume)|`list(any)`|`[]`| no |
90
-
| <aname="input_vpc_lattice_configurations"></a> [vpc\_lattice\_configurations](#input\_vpc\_lattice\_configurations)| The VPC Lattice configuration for your service that allows Lattice to connect, secure, and monitor your service across multiple accounts and VPCs | <pre>list(object({<br/> role_arn = string<br/> target_group_arn = string<br/> port_name = string<br/> }))</pre> |`null`| no |
91
+
| <aname="input_vpc_lattice_configurations"></a> [vpc\_lattice\_configurations](#input\_vpc\_lattice\_configurations)| The VPC Lattice configuration for your service that allows Lattice to connect, secure, and monitor your service across multiple accounts and VPCs | <pre>list(object({<br/> role_arn = string<br/> target_group_arn = string<br/> port_name = string<br/> }))</pre> |`[]`| no |
91
92
| <aname="input_vpc_subnets"></a> [vpc\_subnets](#input\_vpc\_subnets)| VPC Subnets where the tasks should live in |`list(string)`| n/a | yes |
92
93
| <aname="input_wait_for_steady_state"></a> [wait\_for\_steady\_state](#input\_wait\_for\_steady\_state)| If `true`, Terraform will wait for the service to reach a steady state (like aws ecs wait services-stable) before continuing. |`bool`|`null`| no |
description="The VPC Lattice configuration for your service that allows Lattice to connect, secure, and monitor your service across multiple accounts and VPCs"
295
-
default=null
295
+
default=[]
296
296
type=list(object({
297
297
role_arn =string
298
298
target_group_arn =string
@@ -347,3 +347,12 @@ variable "tags" {
347
347
default={}
348
348
type=map(string)
349
349
}
350
+
351
+
variable"ordered_placement_strategy" {
352
+
description="List of map of service level strategy rules that are taken into consideration during task placement. List from top to bottom in order of precedence. Max 5. [Terraform Docs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_service#ordered_placement_strategy)"
0 commit comments