Skip to content

Commit

Permalink
chore(CLOUDDEV-1074): Remove and fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandr Semenov committed Dec 6, 2024
1 parent ab3b40e commit 36d32ff
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 126 deletions.
20 changes: 0 additions & 20 deletions examples/data-sources/edgecenter_laas_hosts/data-source.tf

This file was deleted.

20 changes: 0 additions & 20 deletions examples/data-sources/edgecenter_laas_status/data-source.tf

This file was deleted.

14 changes: 14 additions & 0 deletions examples/resources/edgecenter_cdn_resource/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@ provider "edgecenter" {
permanent_api_token = "251$d3361.............1b35f26d8"
}

resource "edgecenter_cdn_origingroup" "origin_group_1" {
name = "origin_group_1"
use_next = true
origin {
source = "example.com"
enabled = true
}
origin {
source = "mirror.example.com"
enabled = true
backup = true
}
consistent_balancing = true
}

resource "edgecenter_cdn_resource" "cdn_example_com" {
cname = "cdn.example.com"
Expand Down
2 changes: 0 additions & 2 deletions examples/resources/edgecenter_faas_function/import.sh

This file was deleted.

31 changes: 0 additions & 31 deletions examples/resources/edgecenter_faas_function/resource.tf

This file was deleted.

2 changes: 0 additions & 2 deletions examples/resources/edgecenter_faas_namespace/import.sh

This file was deleted.

14 changes: 0 additions & 14 deletions examples/resources/edgecenter_faas_namespace/resource.tf

This file was deleted.

2 changes: 0 additions & 2 deletions examples/resources/edgecenter_laas_topic/import.sh

This file was deleted.

10 changes: 0 additions & 10 deletions examples/resources/edgecenter_laas_topic/resource.tf

This file was deleted.

24 changes: 16 additions & 8 deletions examples/resources/edgecenter_lbpool/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,34 @@ provider "edgecenter" {
permanent_api_token = "251$d3361.............1b35f26d8"
}

resource "edgecenter_loadbalancer" "lb" {
resource "edgecenter_loadbalancerv2" "lb" {
project_id = 1
region_id = 1
name = "test1"
name = "test"
flavor = "lb1-1-2"
listener {
name = "test"
protocol = "HTTP"
protocol_port = 80
metadata_map = {
tag1 = "tag1_value"
}
}

resource "edgecenter_lblistener" "listener" {
project_id = 1
region_id = 1
name = "test"
protocol = "TCP"
protocol_port = 36621
allowed_cidrs = ["127.0.0.0/24", "192.168.0.0/24"]
loadbalancer_id = edgecenter_loadbalancerv2.lb.id
}

resource "edgecenter_lbpool" "pl" {
project_id = 1
region_id = 1
name = "test_pool1"
protocol = "HTTP"
lb_algorithm = "LEAST_CONNECTIONS"
loadbalancer_id = edgecenter_loadbalancer.lb.id
listener_id = edgecenter_loadbalancer.lb.listener.0.id
loadbalancer_id = edgecenter_loadbalancerv2.lb.id
listener_id = edgecenter_lblistener.listener.id
health_monitor {
type = "PING"
delay = 60
Expand Down
9 changes: 0 additions & 9 deletions examples/resources/edgecenter_storage_sftp/resource.tf

This file was deleted.

8 changes: 0 additions & 8 deletions examples/resources/edgecenter_storage_sftp_key/resource.tf

This file was deleted.

0 comments on commit 36d32ff

Please sign in to comment.