@@ -15,11 +15,11 @@ resource "servicefabric_service" "api" {
1515 service_type_name = "Contoso.Sample.ApiServiceType"
1616 service_kind = "Stateless"
1717
18- partition {
18+ partition = {
1919 scheme = "Singleton"
2020 }
2121
22- stateless {
22+ stateless = {
2323 instance_count = 3
2424 }
2525}
@@ -41,12 +41,13 @@ The following arguments are supported:
4141 ` ExclusiveProcess ` . Changing this value forces a new resource.
4242- ` service_dns_name ` (Optional) – DNS name assigned to the service.
4343- ` force_remove ` (Optional) – When true, destroy issues ` ForceRemove=true ` .
44- - ` partition ` (Required) – Single nested block describing partitioning:
44+ - ` partition ` (Required) – Object attribute describing partitioning:
4545 - ` scheme ` (Required) – ` Singleton ` , ` Named ` , or ` UniformInt64Range ` .
4646 - ` count ` (Optional) – Partition count (named or uniform schemes).
4747 - ` names ` (Optional) – List of partition names (named scheme).
4848 - ` low_key ` / ` high_key ` (Optional) – Key range (uniform scheme).
4949- ` stateless ` (Optional) – Required when ` service_kind = "Stateless" ` .
50+ Configure as ` stateless = { ... } ` . Supports:
5051 Supports:
5152 - ` instance_count ` (Optional) – Number of instances per partition (-1 deploys
5253 everywhere).
@@ -55,7 +56,7 @@ The following arguments are supported:
5556 - ` instance_close_delay_seconds ` (Optional) – Delay before closing on upgrade.
5657 - ` instance_restart_wait_seconds ` (Optional) – Restart delay for failed
5758 instances.
58- - ` stateful ` (Optional) – Required when ` service_kind = "Stateful" ` . Supports:
59+ - ` stateful ` (Optional) – Required when ` service_kind = "Stateful" ` . Configure as ` stateful = { ... } ` . Supports:
5960 - ` target_replica_set_size ` (Required) – Replica count per partition.
6061 - ` min_replica_set_size ` (Required) – Minimum replicas needed for quorum.
6162 - ` has_persisted_state ` (Required) – Whether the service persists state.
0 commit comments