@@ -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-if748odn" ]
444
440
445
441
tags = {
446
442
test = "tf"
@@ -509,9 +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
508
516
509
resource "tencentcloud_vpc" "foo" {
517
510
name = "clb-instance-open-vpc"
@@ -525,7 +518,7 @@ resource "tencentcloud_clb_instance" "clb_open" {
525
518
project_id = 0
526
519
target_region_info_region = "ap-guangzhou"
527
520
target_region_info_vpc_id = tencentcloud_vpc.foo.id
528
- security_groups = [tencentcloud_security_group.foo.id ]
521
+ security_groups = ["sg-if748odn" ]
529
522
530
523
tags = {
531
524
test = "test"
@@ -546,12 +539,6 @@ resource "tencentcloud_subnet" "subnet" {
546
539
is_multicast = false
547
540
}
548
541
549
- resource "tencentcloud_security_group" "sglab" {
550
- name = "clb-instance-enable-sg"
551
- description = "favourite sg"
552
- project_id = 0
553
- }
554
-
555
542
resource "tencentcloud_vpc" "foo" {
556
543
name = "clb-instance-default-vpc"
557
544
cidr_block = "10.0.0.0/16"
@@ -568,7 +555,7 @@ resource "tencentcloud_clb_instance" "default_enable" {
568
555
vpc_id = tencentcloud_vpc.foo.id
569
556
load_balancer_pass_to_target = true
570
557
571
- security_groups = [tencentcloud_security_group.sglab.id ]
558
+ security_groups = ["sg-if748odn" ]
572
559
target_region_info_region = "ap-guangzhou"
573
560
target_region_info_vpc_id = tencentcloud_vpc.foo.id
574
561
@@ -591,12 +578,6 @@ resource "tencentcloud_subnet" "subnet" {
591
578
is_multicast = false
592
579
}
593
580
594
- resource "tencentcloud_security_group" "sglab" {
595
- name = "clb-instance-enable-sg"
596
- description = "favourite sg"
597
- project_id = 0
598
- }
599
-
600
581
resource "tencentcloud_vpc" "foo" {
601
582
name = "clb-instance-default-vpc"
602
583
cidr_block = "10.0.0.0/16"
@@ -613,7 +594,7 @@ resource "tencentcloud_clb_instance" "default_enable" {
613
594
vpc_id = tencentcloud_vpc.foo.id
614
595
load_balancer_pass_to_target = true
615
596
616
- security_groups = [tencentcloud_security_group.sglab.id ]
597
+ security_groups = ["sg-if748odn" ]
617
598
target_region_info_region = "ap-guangzhou"
618
599
target_region_info_vpc_id = tencentcloud_vpc.foo.id
619
600
0 commit comments