Skip to content

Commit 016e6dc

Browse files
Fix partition and stateless block syntax in servicefabric_service resource documentation
1 parent 9d4fbad commit 016e6dc

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,11 @@ resource "servicefabric_service" "api" {
159159
service_type_name = "Contoso.Sample.ApiServiceType"
160160
service_kind = "Stateless"
161161
162-
partition {
162+
partition = {
163163
scheme = "Singleton"
164164
}
165165
166-
stateless {
166+
stateless = {
167167
instance_count = 3
168168
}
169169
}
@@ -180,11 +180,11 @@ resource "servicefabric_service" "api" {
180180
service_type_name = "Contoso.Sample.ApiServiceType"
181181
service_kind = "Stateless"
182182
183-
partition {
183+
partition = {
184184
scheme = "Singleton"
185185
}
186186
187-
stateless {
187+
stateless = {
188188
instance_count = 3
189189
}
190190
}

docs/resources/service.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)