Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use terrafmt on docs directory. #1036

Merged
merged 2 commits into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Run terrafmt on docs directory.
  • Loading branch information
andrewsomething committed Sep 27, 2023
commit cb1a5fdadc6ae1d9e0504c44448ce6203a9e4429
4 changes: 2 additions & 2 deletions docs/data-sources/domains.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ also uses the regular expression `match_by` mode in order to match domains by su
```hcl
data "digitalocean_domains" "examples" {
filter {
key = "name"
values = ["example\\.com$"]
key = "name"
values = ["example\\.com$"]
match_by = "re"
}
}
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/firewall.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ Get the firewall:

```hcl
data "digitalocean_firewall" "example" {
firewall_id = "1df48973-6eef-4214-854f-fa7726e7e583"
firewall_id = "1df48973-6eef-4214-854f-fa7726e7e583"
}

output "example_firewall_name" {
value = data.digitalocean_firewall.example.name
value = data.digitalocean_firewall.example.name
}
```

Expand Down
6 changes: 3 additions & 3 deletions docs/data-sources/kubernetes_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ data "digitalocean_kubernetes_cluster" "example" {
}

provider "kubernetes" {
host = data.digitalocean_kubernetes_cluster.example.endpoint
token = data.digitalocean_kubernetes_cluster.example.kube_config[0].token
host = data.digitalocean_kubernetes_cluster.example.endpoint
token = data.digitalocean_kubernetes_cluster.example.kube_config[0].token
cluster_ca_certificate = base64decode(
data.digitalocean_kubernetes_cluster.example.kube_config[0].cluster_ca_certificate
)
Expand Down Expand Up @@ -78,4 +78,4 @@ The following attributes are exported:
+ `key` - An arbitrary string. The "key" and "value" fields of the "taint" object form a key-value pair.
+ `value` - An arbitrary string. The "key" and "value" fields of the "taint" object form a key-value pair.
+ `effect` - How the node reacts to pods that it won't tolerate. Available effect values are: "NoSchedule", "PreferNoSchedule", "NoExecute".
* `urn` - The uniform resource name (URN) for the Kubernetes cluster.
* `urn` - The uniform resource name (URN) for the Kubernetes cluster.
2 changes: 1 addition & 1 deletion docs/data-sources/records.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Get data for all MX records in a domain:
data "digitalocean_records" "example" {
domain = "example.com"
filter {
key = "type"
key = "type"
values = ["MX"]
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Use the navigation to the left to read about the available resources.
terraform {
required_providers {
digitalocean = {
source = "digitalocean/digitalocean"
source = "digitalocean/digitalocean"
version = "~> 2.0"
}
}
Expand Down
4 changes: 2 additions & 2 deletions docs/resources/app.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ resource "digitalocean_app" "static-site-example" {
```hcl
resource "digitalocean_app" "mono-repo-example" {
spec {
name = "mono-repo-example"
region = "ams"
name = "mono-repo-example"
region = "ams"
domain {
name = "foo.example.com"
}
Expand Down
4 changes: 2 additions & 2 deletions docs/resources/container_registry_docker_credentials.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ data "digitalocean_kubernetes_cluster" "example" {
}

provider "kubernetes" {
host = data.digitalocean_kubernetes_cluster.example.endpoint
token = data.digitalocean_kubernetes_cluster.example.kube_config[0].token
host = data.digitalocean_kubernetes_cluster.example.endpoint
token = data.digitalocean_kubernetes_cluster.example.kube_config[0].token
cluster_ca_certificate = base64decode(
data.digitalocean_kubernetes_cluster.example.kube_config[0].cluster_ca_certificate
)
Expand Down
14 changes: 7 additions & 7 deletions docs/resources/custom_image.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ Image documentation for [additional requirements](https://www.digitalocean.com/d

```hcl
resource "digitalocean_custom_image" "flatcar" {
name = "flatcar"
url = "https://stable.release.flatcar-linux.net/amd64-usr/2605.7.0/flatcar_production_digitalocean_image.bin.bz2"
name = "flatcar"
url = "https://stable.release.flatcar-linux.net/amd64-usr/2605.7.0/flatcar_production_digitalocean_image.bin.bz2"
regions = ["nyc3"]
}

resource "digitalocean_droplet" "example" {
image = digitalocean_custom_image.flatcar.id
name = "example-01"
region = "nyc3"
size = "s-1vcpu-1gb"
ssh_keys = [12345]
image = digitalocean_custom_image.flatcar.id
name = "example-01"
region = "nyc3"
size = "s-1vcpu-1gb"
ssh_keys = [12345]
}
```

Expand Down
4 changes: 2 additions & 2 deletions docs/resources/database_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ resource "digitalocean_database_cluster" "doby_backup" {
region = "nyc1"
node_count = 1
tags = ["production"]

backup_restore {
database_name = "dobydb"
database_name = "dobydb"
}

depends_on = [
Expand Down
10 changes: 5 additions & 5 deletions docs/resources/kubernetes_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ resource "digitalocean_kubernetes_cluster" "foo" {
version = data.digitalocean_kubernetes_versions.example.latest_version

maintenance_policy {
start_time = "04:00"
day = "sunday"
start_time = "04:00"
day = "sunday"
}

node_pool {
Expand Down Expand Up @@ -107,8 +107,8 @@ data "digitalocean_kubernetes_cluster" "example" {
}

provider "kubernetes" {
host = data.digitalocean_kubernetes_cluster.example.endpoint
token = data.digitalocean_kubernetes_cluster.example.kube_config[0].token
host = data.digitalocean_kubernetes_cluster.example.endpoint
token = data.digitalocean_kubernetes_cluster.example.kube_config[0].token
cluster_ca_certificate = base64decode(
data.digitalocean_kubernetes_cluster.example.kube_config[0].cluster_ca_certificate
)
Expand All @@ -124,7 +124,7 @@ initializing the provider.

```hcl
provider "kubernetes" {
host = data.digitalocean_kubernetes_cluster.foo.endpoint
host = data.digitalocean_kubernetes_cluster.foo.endpoint
cluster_ca_certificate = base64decode(
data.digitalocean_kubernetes_cluster.foo.kube_config[0].cluster_ca_certificate
)
Expand Down
4 changes: 2 additions & 2 deletions docs/resources/monitor_alert.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ resource "digitalocean_monitor_alert" "cpu_alert" {
alerts {
email = ["[email protected]"]
slack {
channel = "Production Alerts"
url = "https://hooks.slack.com/services/T1234567/AAAAAAAA/ZZZZZZ"
channel = "Production Alerts"
url = "https://hooks.slack.com/services/T1234567/AAAAAAAA/ZZZZZZ"
}
}
window = "5m"
Expand Down
34 changes: 17 additions & 17 deletions docs/resources/spaces_bucket_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,23 @@ resource "digitalocean_spaces_bucket_policy" "foobar" {
region = digitalocean_spaces_bucket.foobar.region
bucket = digitalocean_spaces_bucket.foobar.name
policy = jsonencode({
"Version": "2012-10-17",
"Statement": [
{
"Sid": "IPAllow",
"Effect": "Deny",
"Principal": "*",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::${digitalocean_spaces_bucket.foobar.name}",
"arn:aws:s3:::${digitalocean_spaces_bucket.foobar.name}/*"
],
"Condition": {
"NotIpAddress": {
"aws:SourceIp": "54.240.143.0/24"
}
}
"Version" : "2012-10-17",
"Statement" : [
{
"Sid" : "IPAllow",
"Effect" : "Deny",
"Principal" : "*",
"Action" : "s3:*",
"Resource" : [
"arn:aws:s3:::${digitalocean_spaces_bucket.foobar.name}",
"arn:aws:s3:::${digitalocean_spaces_bucket.foobar.name}/*"
],
"Condition" : {
"NotIpAddress" : {
"aws:SourceIp" : "54.240.143.0/24"
}
}
}
]
})
}
Expand All @@ -91,4 +91,4 @@ Bucket policies can be imported using the `region` and `bucket` attributes (deli

```
terraform import digitalocean_spaces_bucket_policy.foobar `region`,`bucket`
```
```
4 changes: 2 additions & 2 deletions docs/resources/uptime_check.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ resource. Uptime Checks provide the ability to monitor your endpoints from aroun
```hcl
# Create a new check for the target endpoint in a specifc region
resource "digitalocean_uptime_check" "foobar" {
name = "example-europe-check"
target = "https://www.example.com"
name = "example-europe-check"
target = "https://www.example.com"
regions = ["eu_west"]
}
```
Expand Down
Loading