Skip to content

Commit ddbceb7

Browse files
authored
Documentation fixes (#1696)
* Fix format arguments * fix typos * format docs
1 parent dc7238f commit ddbceb7

File tree

12 files changed

+48
-48
lines changed

12 files changed

+48
-48
lines changed

docs/data-sources/job.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ This data source exports the following attributes:
3535
The following resources are used in the same context:
3636

3737
* [databricks_jobs](jobs.md) data to get all jobs and their names from a workspace.
38-
* [databricks_job](../resources/job.md) to manage [Databricks Jobs](https://docs.databricks.com/jobs.html) to run non-interactive code in a [databricks_cluster](../resources/cluster.md).
38+
* [databricks_job](../resources/job.md) to manage [Databricks Jobs](https://docs.databricks.com/jobs.html) to run non-interactive code in a [databricks_cluster](../resources/cluster.md).

docs/data-sources/share.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Getting details of an existing share in the metastore
1111

1212
```hcl
1313
data "databricks_share" "this" {
14-
name = "this
14+
name = "this"
1515
}
1616
1717
output "created_by" {

docs/guides/aws-private-link-workspace.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -216,23 +216,23 @@ resource "aws_security_group" "dataplane_vpce" {
216216

217217
```hcl
218218
resource "aws_vpc_endpoint" "backend_rest" {
219-
vpc_id = var.vpc_id
220-
service_name = var.workspace_vpce_service
221-
vpc_endpoint_type = "Interface"
222-
security_group_ids = [aws_security_group.dataplane_vpce.id]
223-
subnet_ids = [aws_subnet.dataplane_vpce.id]
219+
vpc_id = var.vpc_id
220+
service_name = var.workspace_vpce_service
221+
vpc_endpoint_type = "Interface"
222+
security_group_ids = [aws_security_group.dataplane_vpce.id]
223+
subnet_ids = [aws_subnet.dataplane_vpce.id]
224224
private_dns_enabled = var.private_dns_enabled
225-
depends_on = [aws_subnet.dataplane_vpce]
225+
depends_on = [aws_subnet.dataplane_vpce]
226226
}
227227
228228
resource "aws_vpc_endpoint" "relay" {
229-
vpc_id = var.vpc_id
230-
service_name = var.relay_vpce_service
231-
vpc_endpoint_type = "Interface"
232-
security_group_ids = [aws_security_group.dataplane_vpce.id]
233-
subnet_ids = [aws_subnet.dataplane_vpce.id]
229+
vpc_id = var.vpc_id
230+
service_name = var.relay_vpce_service
231+
vpc_endpoint_type = "Interface"
232+
security_group_ids = [aws_security_group.dataplane_vpce.id]
233+
subnet_ids = [aws_subnet.dataplane_vpce.id]
234234
private_dns_enabled = var.private_dns_enabled
235-
depends_on = [aws_subnet.dataplane_vpce]
235+
depends_on = [aws_subnet.dataplane_vpce]
236236
}
237237
238238
resource "databricks_mws_vpc_endpoint" "backend_rest_vpce" {

docs/guides/unity-catalog-azure.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,8 @@ resource "databricks_external_location" "some" {
262262
name = "external"
263263
url = format("abfss://%s@%s.dfs.core.windows.net/",
264264
azurerm_storage_container.ext_storage.name,
265-
azurerm_storage_account.ext_storage.name)
266-
265+
azurerm_storage_account.ext_storage.name)
266+
267267
credential_name = databricks_storage_credential.external.id
268268
comment = "Managed by TF"
269269
depends_on = [

docs/resources/cluster.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ When you [create a Databricks cluster](https://docs.databricks.com/clusters/conf
8888
* `max_workers` - (Optional) The maximum number of workers to which the cluster can scale up when overloaded. max_workers must be strictly greater than min_workers.
8989

9090
When using a [Single Node cluster](https://docs.databricks.com/clusters/single-node.html), `num_workers` needs to be `0`. It can be set to `0` explicitly, or simply not specified, as it defaults to `0`. When `num_workers` is `0`, provider checks for presence of the required Spark configurations:
91-
* `spark.master` must has prefix `local`, like `local[*]`
91+
* `spark.master` must have prefix `local`, like `local[*]`
9292
* `spark.databricks.cluster.profile` must have value `singleNode`
9393

9494
and also `custom_tag` entry:

docs/resources/external_location.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ resource "databricks_storage_credential" "external" {
5656
resource "databricks_external_location" "some" {
5757
name = "external"
5858
url = format("abfss://%s@%s.dfs.core.windows.net/",
59-
azurerm_storage_account.ext_storage.name,
60-
azurerm_storage_container.ext_storage.name)
59+
azurerm_storage_container.ext_storage.name,
60+
azurerm_storage_account.ext_storage.name)
6161
credential_name = databricks_storage_credential.external.id
6262
comment = "Managed by TF"
6363
depends_on = [

docs/resources/grants.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ resource "databricks_grants" "sandbox" {
4646
grant {
4747
principal = "Data Sharer"
4848
privileges = ["CREATE_RECIPIENT", "CREATE_SHARE"]
49-
}
49+
}
5050
}
5151
```
5252

@@ -77,7 +77,7 @@ resource "databricks_grants" "sandbox" {
7777
grant {
7878
principal = "Data Analyst"
7979
privileges = ["USE_CATALOG", "USE_SCHEMA", "SELECT"]
80-
}
80+
}
8181
}
8282
```
8383

@@ -225,11 +225,11 @@ You can grant `SELECT` to [databricks_recipient](recipient.md) on [databricks_sh
225225

226226
```hcl
227227
resource "databricks_share" "some" {
228-
name = "my_share"
228+
name = "my_share"
229229
}
230230
231231
resource "databricks_recipient" "some" {
232-
name = "my_recipient"
232+
name = "my_recipient"
233233
}
234234
235235
resource "databricks_grants" "some" {

docs/resources/metastore.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ For Azure
3131
resource "databricks_metastore" "this" {
3232
name = "primary"
3333
storage_root = format("abfss://%s@%s.dfs.core.windows.net/",
34-
azurerm_storage_account.unity_catalog.name,
35-
azurerm_storage_container.unity_catalog.name)
34+
azurerm_storage_container.unity_catalog.name,
35+
azurerm_storage_account.unity_catalog.name)
3636
owner = "uc admins"
3737
force_destroy = true
3838
}

docs/resources/metastore_data_access.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ For Azure using managed identity as credential (recommended)
3333
resource "databricks_metastore" "this" {
3434
name = "primary"
3535
storage_root = format("abfss://%s@%s.dfs.core.windows.net/",
36-
azurerm_storage_account.unity_catalog.name,
37-
azurerm_storage_container.unity_catalog.name)
36+
azurerm_storage_container.unity_catalog.name,
37+
azurerm_storage_account.unity_catalog.name)
3838
owner = "uc admins"
3939
force_destroy = true
4040
}
@@ -55,8 +55,8 @@ For Azure using service principal as credential
5555
resource "databricks_metastore" "this" {
5656
name = "primary"
5757
storage_root = format("abfss://%s@%s.dfs.core.windows.net/",
58-
azurerm_storage_account.unity_catalog.name,
59-
azurerm_storage_container.unity_catalog.name)
58+
azurerm_storage_container.unity_catalog.name,
59+
azurerm_storage_account.unity_catalog.name)
6060
owner = "uc admins"
6161
force_destroy = true
6262
}

docs/resources/mws_vpc_endpoint.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,23 @@ Before using this resource, you will need to create the necessary VPC Endpoints
1515

1616
```hcl
1717
resource "aws_vpc_endpoint" "workspace" {
18-
vpc_id = module.vpc.vpc_id
19-
service_name = local.private_link.workspace_service
20-
vpc_endpoint_type = "Interface"
21-
security_group_ids = [module.vpc.default_security_group_id]
22-
subnet_ids = [aws_subnet.pl_subnet.id]
23-
depends_on = [aws_subnet.pl_subnet]
24-
private_dns_enabled = true
18+
vpc_id = module.vpc.vpc_id
19+
service_name = local.private_link.workspace_service
20+
vpc_endpoint_type = "Interface"
21+
security_group_ids = [module.vpc.default_security_group_id]
22+
subnet_ids = [aws_subnet.pl_subnet.id]
23+
depends_on = [aws_subnet.pl_subnet]
24+
private_dns_enabled = true
2525
}
2626
2727
resource "aws_vpc_endpoint" "relay" {
28-
vpc_id = module.vpc.vpc_id
29-
service_name = local.private_link.relay_service
30-
vpc_endpoint_type = "Interface"
31-
security_group_ids = [module.vpc.default_security_group_id]
32-
subnet_ids = [aws_subnet.pl_subnet.id]
33-
depends_on = [aws_subnet.pl_subnet]
34-
private_dns_enabled = true
28+
vpc_id = module.vpc.vpc_id
29+
service_name = local.private_link.relay_service
30+
vpc_endpoint_type = "Interface"
31+
security_group_ids = [module.vpc.default_security_group_id]
32+
subnet_ids = [aws_subnet.pl_subnet.id]
33+
depends_on = [aws_subnet.pl_subnet]
34+
private_dns_enabled = true
3535
}
3636
```
3737

0 commit comments

Comments
 (0)