Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Commit b10d03f

Browse files
author
Alexandr Sokolov
committed
docs/examples typo and ignore_creds_auth_error warning fixed
1 parent 5aed376 commit b10d03f

File tree

8 files changed

+39
-9
lines changed

8 files changed

+39
-9
lines changed

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ terraform {
1818
required_providers {
1919
gcore = {
2020
source = "G-Core/gcorelabs"
21-
version = "0.1.14"
21+
version = "0.2.39"
2222
}
2323
}
2424
}

docs/resources/gcore_dns_zone_record.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,36 @@ provider gcore {
2222
gcore_dns_api = "https://dnsapi.gcorelabs.com"
2323
}
2424
25+
//
26+
// example0: managing zone and records by TF using variables
27+
//
28+
variable "example_domain0" {
29+
type = string
30+
default = "examplezone.com"
31+
}
32+
33+
resource "gcore_dns_zone" "examplezone0" {
34+
name = var.example_domain0
35+
}
36+
37+
resource "gcore_dns_zone_record" "example_rrset0" {
38+
zone = gcore_dns_zone.examplezone0.name
39+
domain = "${gcore_dns_zone.examplezone0.name}"
40+
type = "A"
41+
ttl = 100
42+
43+
resource_record {
44+
content = "127.0.0.100"
45+
}
46+
resource_record {
47+
content = "127.0.0.200"
48+
// enabled = false
49+
}
50+
}
51+
52+
//
53+
// example1: managing zone outside of TF
54+
//
2555
resource "gcore_dns_zone_record" "subdomain_examplezone" {
2656
zone = "examplezone.com"
2757
domain = "subdomain.examplezone.com"

docs/resources/gcore_lbpool.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ resource "gcore_loadbalancer" "lb" {
2525
region_id = 1
2626
name = "test1"
2727
flavor = "lb1-1-2"
28-
listeners {
28+
listener {
2929
name = "test"
3030
protocol = "HTTP"
3131
protocol_port = 80
@@ -39,7 +39,7 @@ resource "gcore_lbpool" "pl" {
3939
protocol = "HTTP"
4040
lb_algorithm = "LEAST_CONNECTIONS"
4141
loadbalancer_id = gcore_loadbalancer.lb.id
42-
listener_id = gcore_loadbalancer.lb.listeners.0.id
42+
listener_id = gcore_loadbalancer.lb.listener.0.id
4343
health_monitor {
4444
type = "PING"
4545
delay = 60

docs/resources/gcore_router.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Required:
8585
Optional:
8686

8787
- **enable_snat** (Boolean)
88-
- **type** (String) Must be 'manual'
88+
- **type** (String) Must be 'manual' or 'default'
8989

9090
Read-Only:
9191

examples/provider/provider.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ terraform {
33
required_providers {
44
gcore = {
55
source = "G-Core/gcorelabs"
6-
version = "0.1.14"
6+
version = "0.2.39"
77
}
88
}
99
}

examples/resources/gcore_lbpool/resource.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ resource "gcore_loadbalancer" "lb" {
1010
region_id = 1
1111
name = "test1"
1212
flavor = "lb1-1-2"
13-
listeners {
13+
listener {
1414
name = "test"
1515
protocol = "HTTP"
1616
protocol_port = 80
@@ -24,7 +24,7 @@ resource "gcore_lbpool" "pl" {
2424
protocol = "HTTP"
2525
lb_algorithm = "LEAST_CONNECTIONS"
2626
loadbalancer_id = gcore_loadbalancer.lb.id
27-
listener_id = gcore_loadbalancer.lb.listeners.0.id
27+
listener_id = gcore_loadbalancer.lb.listener.0.id
2828
health_monitor {
2929
type = "PING"
3030
delay = 60

gcore/provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func Provider() *schema.Provider {
4949
Type: schema.TypeBool,
5050
Optional: true,
5151
Description: "Should be set to true when you are gonna to use storage resource with permanent API-token only.",
52-
DefaultFunc: schema.EnvDefaultFunc("GCORE_PERMANENT_TOKEN", ""),
52+
DefaultFunc: schema.EnvDefaultFunc("GCORE_PERMANENT_TOKEN", false),
5353
},
5454
"gcore_platform": {
5555
Type: schema.TypeString,

gcore/resource_gcore_router.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func resourceRouter() *schema.Resource {
8686
Schema: map[string]*schema.Schema{
8787
"type": {
8888
Type: schema.TypeString,
89-
Description: "Must be 'manual'",
89+
Description: "Must be 'manual' or 'default'",
9090
Optional: true,
9191
Computed: true,
9292
},

0 commit comments

Comments
 (0)