Skip to content

Commit ef6e341

Browse files
committed
various interface changes based on internal feedback
1 parent 8be2d1d commit ef6e341

20 files changed

+612
-426
lines changed

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"go.lintFlags": [
33
"--fast"
44
],
5-
"go.lintTool": "golangci-lint"
5+
"go.lintTool": "golangci-lint",
6+
"files.insertFinalNewline": true
67
}

docs/resources/environment_variable.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ description: |-
2323
### Optional
2424

2525
- `scopes` (Set of String)
26-
- `secret_value` (Attributes Set) (see [below for nested schema](#nestedatt--secret_value))
26+
- `secret_values` (Attributes Set) (see [below for nested schema](#nestedatt--secret_values))
2727
- `site_id` (String)
28-
- `value` (Attributes Set) (see [below for nested schema](#nestedatt--value))
28+
- `values` (Attributes Set) (see [below for nested schema](#nestedatt--values))
2929

3030
### Read-Only
3131

3232
- `last_updated` (String)
3333

34-
<a id="nestedatt--secret_value"></a>
35-
### Nested Schema for `secret_value`
34+
<a id="nestedatt--secret_values"></a>
35+
### Nested Schema for `secret_values`
3636

3737
Required:
3838

@@ -44,8 +44,8 @@ Optional:
4444
- `context_parameter` (String)
4545

4646

47-
<a id="nestedatt--value"></a>
48-
### Nested Schema for `value`
47+
<a id="nestedatt--values"></a>
48+
### Nested Schema for `values`
4949

5050
Required:
5151

docs/resources/site_build_settings.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,19 @@ description: |-
1818
### Required
1919

2020
- `build_command` (String)
21+
- `production_branch` (String)
2122
- `publish_directory` (String)
2223
- `site_id` (String)
2324

2425
### Optional
2526

2627
- `base_directory` (String)
28+
- `branch_deploy_all_branches` (Boolean)
29+
- `branch_deploy_branches` (List of String)
2730
- `build_image` (String)
31+
- `deploy_previews` (Boolean)
2832
- `functions_directory` (String)
33+
- `functions_region` (String)
2934
- `package_directory` (String)
3035
- `pretty_urls` (Boolean)
3136
- `stop_builds` (Boolean)
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "netlify_site_collaboration_settings Resource - netlify"
4+
subcategory: ""
5+
description: |-
6+
7+
---
8+
9+
# netlify_site_collaboration_settings (Resource)
10+
11+
12+
13+
14+
15+
<!-- schema generated by tfplugindocs -->
16+
## Schema
17+
18+
### Required
19+
20+
- `netlify_drawer_in_branch_deploys` (Boolean)
21+
- `netlify_drawer_in_deploy_previews` (Boolean)
22+
- `netlify_heads_up_display` (Boolean)
23+
- `site_id` (String)
24+
25+
### Read-Only
26+
27+
- `last_updated` (String)

docs/resources/site_deploy_settings.md

Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "netlify_site_domain_settings Resource - netlify"
4+
subcategory: ""
5+
description: |-
6+
7+
---
8+
9+
# netlify_site_domain_settings (Resource)
10+
11+
12+
13+
14+
15+
<!-- schema generated by tfplugindocs -->
16+
## Schema
17+
18+
### Required
19+
20+
- `site_id` (String)
21+
22+
### Optional
23+
24+
- `branch_deploy_custom_domain` (String)
25+
- `custom_domain` (String)
26+
- `deploy_preview_custom_domain` (String)
27+
- `domain_aliases` (List of String)
28+
29+
### Read-Only
30+
31+
- `last_updated` (String)

examples/dns/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ resource "netlify_dns_record" "fish" {
5252
priority = 10
5353
}
5454

55+
# TODO: verify this returns all DNS records
5556
data "netlify_dns_zone" "example" {
5657
name = "example-tf-test-test.com"
5758
depends_on = [

examples/env_vars/main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ resource "netlify_environment_variable" "woof" {
2323
account_id = data.netlify_account.current.id
2424
site_id = data.netlify_site.platform_test.id
2525
key = "WOOF"
26-
value = [
26+
values = [
2727
{
2828
value = "dogs are here",
2929
context = "all",
@@ -35,7 +35,7 @@ resource "netlify_environment_variable" "meow" {
3535
account_id = data.netlify_account.current.id
3636
site_id = data.netlify_site.platform_test.id
3737
key = "TEST_MEOW"
38-
value = [
38+
values = [
3939
{
4040
value = "roflmaocopter",
4141
context = "all",
@@ -47,7 +47,7 @@ resource "netlify_environment_variable" "secret_meow" {
4747
account_id = data.netlify_account.current.id
4848
site_id = data.netlify_site.platform_test.id
4949
key = "SECRET_TEST_MEOW"
50-
secret_value = [
50+
secret_values = [
5151
{
5252
value = "secret roflmaocopter",
5353
context = "production",
@@ -62,7 +62,7 @@ resource "netlify_environment_variable" "secret_meow" {
6262
resource "netlify_environment_variable" "global_meow" {
6363
account_id = data.netlify_account.current.id
6464
key = "TEST_MEOW"
65-
value = [
65+
values = [
6666
{
6767
value = "global roflmaocopter",
6868
context = "all",

examples/firewall_traffic_rules/main.tf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ terraform {
88
}
99

1010
# `token` comes from NETLIFY_API_TOKEN, but can be specified with a Terraform variable
11-
provider "netlify" {
12-
token = "nfp_C92ECMDqhbZpjtbhGmzGT2GQnFJSA4zvcc22"
13-
}
11+
provider "netlify" {}
1412

1513
data "netlify_site" "test4" {
1614
account_slug = "netlify-testing"

examples/site_data_sources/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ data "netlify_site" "platform_test" {
1919
name = "platform-test-1"
2020
}
2121

22+
# TODO: verify this returns all sites
2223
data "netlify_sites" "all" {
2324
account_slug = "netlify-testing"
2425
}

0 commit comments

Comments
 (0)