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

Commit e2a5ba4

Browse files
author
Vasil Mikhalenya
committed
More verbose examples
1 parent 230b0fe commit e2a5ba4

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

docs/index.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,14 @@ terraform {
2424
}
2525
2626
provider gcore {
27-
user_name = "test"
28-
password = "test"
29-
gcore_platform = "https://api.gcdn.co"
30-
gcore_api = "https://api.cloud.gcorelabs.com"
27+
# user_name = "test"
28+
# password = "test"
29+
# ignore_creds_auth_error = true
30+
permanent_api_token = "251$d3361.............1b35f26d8"
31+
gcore_api = "https://api.cloud.gcorelabs.com"
32+
gcore_dns_api = "https://dnsapi.gcorelabs.com"
33+
gcore_platform = "https://api.gcdn.co"
34+
gcore_storage_api = "https://storage.gcorelabs.com/api"
3135
}
3236
3337
resource "gcore_keypair" "kp" {
@@ -252,5 +256,5 @@ resource "gcore_lbmember" "lbm2" {
252256
- **gcore_storage_api** (String) Storage API
253257
- **ignore_creds_auth_error** (Boolean) Should be set to true when you are gonna to use storage resource with permanent API-token only.
254258
- **password** (String)
255-
- **permanent_api_token** (String, Sensitive) A permanent API-token. Implemented for Storage and Cloud Terraform Resources only. https://support.gcorelabs.com/hc/en-us/articles/360018625617-API-tokens
259+
- **permanent_api_token** (String, Sensitive) A permanent [API-token](https://support.gcorelabs.com/hc/en-us/articles/360018625617-API-tokens)
256260
- **user_name** (String)

examples/provider/provider.tf

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ terraform {
1111
provider gcore {
1212
user_name = "test"
1313
password = "test"
14-
gcore_platform = "https://api.gcdn.co"
15-
gcore_api = "https://api.cloud.gcorelabs.com"
14+
ignore_creds_auth_error = true
15+
permanent_api_token = "251$d3361.............1b35f26d8"
16+
gcore_api = "https://api.cloud.gcorelabs.com"
17+
gcore_dns_api = "https://dnsapi.gcorelabs.com"
18+
gcore_platform = "https://api.gcdn.co"
19+
gcore_storage_api = "https://storage.gcorelabs.com/api"
1620
}
1721

1822
resource "gcore_keypair" "kp" {
@@ -221,4 +225,4 @@ resource "gcore_lbmember" "lbm2" {
221225
address = tolist(gcore_instance.instance2.interface).0.ip_address
222226
protocol_port = 8081
223227
weight = 5
224-
}
228+
}

examples/resources/gcore_cdn_resource/resource.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ provider gcore {
88

99
resource "gcore_cdn_resource" "cdn_example_com" {
1010
cname = "cdn.example.com"
11-
origin_group = 11
11+
origin_group = gcore_cdn_origingroup.origin_group_1.id
1212
origin_protocol = "MATCH"
1313
secondary_hostnames = ["cdn2.example.com"]
1414
}

0 commit comments

Comments
 (0)