Skip to content

Commit 7af14ef

Browse files
authored
Merge pull request #184 from ThiagoYU/DAITDS-129
DAITDS-129
2 parents 049d483 + 81c4d30 commit 7af14ef

9 files changed

Lines changed: 16 additions & 16 deletions

File tree

ns1/examples/datafeed.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ resource "ns1_datasource" "api" {
55

66
resource "ns1_datafeed" "foobar" {
77
name = "terraform test"
8-
source_id = "${ns1_datasource.api.id}"
8+
source_id = ns1_datasource.api.id
99

1010
#optional
1111
config = {

ns1/examples/record.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
resource "ns1_record" "it" {
22
#required
3-
zone = "${ns1_zone.test.zone}"
3+
zone = ns1_zone.test.zone
44
domain = "test.${ns1_zone.test.zone}"
55
type = "CNAME"
66

ns1/examples/user.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ resource "ns1_user" "u" {
99
email = "tf_acc_test_ns1@hashicorp.com"
1010

1111
#optional
12-
teams = ["${ns1_team.t.id}"]
12+
teams = [ns1_team.t.id]
1313
notify = {
1414
billing = true
1515
}

website/docs/index.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Use the navigation to the left to read about the available resources.
2020
```hcl
2121
# Configure the NS1 provider
2222
provider "ns1" {
23-
apikey = "${var.ns1_apikey}"
23+
apikey = var.ns1_apikey
2424
}
2525
2626
# Create a new zone

website/docs/r/apikey.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ resource "ns1_team" "example" {
1919
2020
resource "ns1_apikey" "example" {
2121
name = "Example key"
22-
teams = ["${ns1_team.example.id}"]
22+
teams = [ns1_team.example.id]
2323
2424
# Optional IP whitelist
2525
ip_whitelist = ["1.1.1.1","2.2.2.2"]

website/docs/r/datafeed.html.markdown

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ resource "ns1_datasource" "example_monitoring" {
2525
2626
resource "ns1_datafeed" "uswest_feed" {
2727
name = "uswest_feed"
28-
source_id = "${ns1_datasource.example.id}"
28+
source_id = ns1_datasource.example.id
2929
3030
config = {
3131
label = "uswest"
@@ -34,7 +34,7 @@ resource "ns1_datafeed" "uswest_feed" {
3434
3535
resource "ns1_datafeed" "useast_feed" {
3636
name = "useast_feed"
37-
source_id = "${ns1_datasource.example.id}"
37+
source_id = ns1_datasource.example.id
3838
3939
config = {
4040
label = "useast"
@@ -43,10 +43,10 @@ resource "ns1_datafeed" "useast_feed" {
4343
4444
resource "ns1_datafeed" "useast_monitor_feed" {
4545
name = "useast_monitor_feed"
46-
source_id = "${ns1_datasource.example_monitoring.id}"
46+
source_id = ns1_datasource.example_monitoring.id
4747
4848
config = {
49-
jobid = "${ns1_monitoringjob.example_job.id}"
49+
jobid = ns1_monitoringjob.example_job.id
5050
}
5151
}
5252

website/docs/r/pulsar_job.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ resource "ns1_application" "example" {
2121
# Create a new Pulsar JavaScript Job with Blend Metric Weights and multiple weights
2222
resource "ns1_pulsarjob" "example_javascript" {
2323
name = "terraform.example_javascript.io"
24-
app_id = "${ns1_pulsar_application.example.id}"
24+
app_id = ns1_pulsar_application.example.id
2525
type_id = "latency"
2626
2727
config = {

website/docs/r/record.html.markdown

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,22 @@ resource "ns1_datasource" "ns1" {
2424
2525
resource "ns1_datafeed" "foo" {
2626
name = "foo_feed"
27-
source_id = "${ns1_datasource.ns1.id}"
27+
source_id = ns1_datasource.ns1.id
2828
config = {
2929
label = "foo"
3030
}
3131
}
3232
3333
resource "ns1_datafeed" "bar" {
3434
name = "bar_feed"
35-
source_id = "${ns1_datasource.ns1.id}"
35+
source_id = ns1_datasource.ns1.id
3636
config = {
3737
label = "bar"
3838
}
3939
}
4040
4141
resource "ns1_record" "www" {
42-
zone = "${ns1_zone.tld.zone}"
42+
zone = ns1_zone.tld.zone
4343
domain = "www.${ns1_zone.tld.zone}"
4444
type = "CNAME"
4545
ttl = 60
@@ -114,8 +114,8 @@ resource "external_source" "baz" {
114114
# In other cases, a domain or zone may be passed in with a preceding dot ('.')
115115
# character which would likewise lead the system to fail.
116116
resource "ns1_record" "external" {
117-
zone = replace("${external_source.zone}", "/(^\\.)|(\\.$)/", "")
118-
domain = replace("${external_source.domain}", "/(^\\.)|(\\.$)/", "")
117+
zone = replace(external_source.zone, "/(^\\.)|(\\.$)/", "")
118+
domain = replace(external_source.domain, "/(^\\.)|(\\.$)/", "")
119119
type = "CNAME"
120120
}
121121

website/docs/r/user.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ resource "ns1_user" "example" {
2929
name = "Example User"
3030
username = "example_user"
3131
email = "user@example.com"
32-
teams = ["${ns1_team.example.id}"]
32+
teams = [ns1_team.example.id]
3333
notify = {
3434
billing = false
3535
}

0 commit comments

Comments
 (0)