@@ -424,10 +424,6 @@ resource "tencentcloud_clb_instance" "clb_internal" {
424
424
`
425
425
426
426
const testAccClbInstance_open = `
427
- resource "tencentcloud_security_group" "foo" {
428
- name = "keep-ci-temp-test-sg"
429
- }
430
-
431
427
resource "tencentcloud_vpc" "foo" {
432
428
name = "clb-instance-open-vpc"
433
429
cidr_block = "10.0.0.0/16"
@@ -440,7 +436,7 @@ resource "tencentcloud_clb_instance" "clb_open" {
440
436
vpc_id = tencentcloud_vpc.foo.id
441
437
target_region_info_region = "ap-guangzhou"
442
438
target_region_info_vpc_id = tencentcloud_vpc.foo.id
443
- security_groups = [tencentcloud_security_group.foo.id ]
439
+ security_groups = ["sg-5275dorp" ]
444
440
445
441
tags = {
446
442
test = "tf"
@@ -509,10 +505,6 @@ resource "tencentcloud_clb_instance" "clb_internal" {
509
505
}
510
506
`
511
507
const testAccClbInstance_update_open = `
512
- resource "tencentcloud_security_group" "foo" {
513
- name = "clb-instance-sg"
514
- }
515
-
516
508
resource "tencentcloud_vpc" "foo" {
517
509
name = "clb-instance-open-vpc"
518
510
cidr_block = "10.0.0.0/16"
@@ -525,7 +517,7 @@ resource "tencentcloud_clb_instance" "clb_open" {
525
517
project_id = 0
526
518
target_region_info_region = "ap-guangzhou"
527
519
target_region_info_vpc_id = tencentcloud_vpc.foo.id
528
- security_groups = [tencentcloud_security_group.foo.id ]
520
+ security_groups = ["sg-5275dorp" ]
529
521
530
522
tags = {
531
523
test = "test"
@@ -546,12 +538,6 @@ resource "tencentcloud_subnet" "subnet" {
546
538
is_multicast = false
547
539
}
548
540
549
- resource "tencentcloud_security_group" "sglab" {
550
- name = "clb-instance-enable-sg"
551
- description = "favourite sg"
552
- project_id = 0
553
- }
554
-
555
541
resource "tencentcloud_vpc" "foo" {
556
542
name = "clb-instance-default-vpc"
557
543
cidr_block = "10.0.0.0/16"
@@ -568,7 +554,7 @@ resource "tencentcloud_clb_instance" "default_enable" {
568
554
vpc_id = tencentcloud_vpc.foo.id
569
555
load_balancer_pass_to_target = true
570
556
571
- security_groups = [tencentcloud_security_group.sglab.id ]
557
+ security_groups = ["sg-5275dorp" ]
572
558
target_region_info_region = "ap-guangzhou"
573
559
target_region_info_vpc_id = tencentcloud_vpc.foo.id
574
560
@@ -591,12 +577,6 @@ resource "tencentcloud_subnet" "subnet" {
591
577
is_multicast = false
592
578
}
593
579
594
- resource "tencentcloud_security_group" "sglab" {
595
- name = "clb-instance-enable-sg"
596
- description = "favourite sg"
597
- project_id = 0
598
- }
599
-
600
580
resource "tencentcloud_vpc" "foo" {
601
581
name = "clb-instance-default-vpc"
602
582
cidr_block = "10.0.0.0/16"
@@ -613,7 +593,7 @@ resource "tencentcloud_clb_instance" "default_enable" {
613
593
vpc_id = tencentcloud_vpc.foo.id
614
594
load_balancer_pass_to_target = true
615
595
616
- security_groups = [tencentcloud_security_group.sglab.id ]
596
+ security_groups = ["sg-5275dorp" ]
617
597
target_region_info_region = "ap-guangzhou"
618
598
target_region_info_vpc_id = tencentcloud_vpc.foo.id
619
599
0 commit comments