Skip to content

invalid memory address or nil pointer dereference in cfw/resource_tc_cfw_nat_policy.go #3641

@bill-cc

Description

@bill-cc

Terraform Version

1.82.42

Affected Resource(s)

resource tencentcloud_cfw_nat_policy

Terraform Configuration Files

direction            = 1
enable               = "true"
port                    = "80,443"
protocol             = "TCP"
rule_action        = "accept"
source_content = "0.0.0.0/0"
source_type     = "net"
target_content = "0.0.0.0/0"
 target_type     = "net"
description       = "Allow HTTP from all network"
scope                = "ALL"

Panic Output

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x10865bd80]

goroutine 57 [running]:
github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/services/cfw.resourceTencentCloudCfwNatPolicyCreate.func1()
github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/services/cfw/resource_tc_cfw_nat_policy.go:176 +0x1b0
github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource.RetryContext.func1()
github.com/hashicorp/terraform-plugin-sdk/v2@v2.20.0/helper/resource/wait.go:27 +0x4c
github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource.(*StateChangeConf).WaitForStateContext.func1()
github.com/hashicorp/terraform-plugin-sdk/v2@v2.20.0/helper/resource/state.go:110 +0x174
created by github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource.(*StateChangeConf).WaitForStateContext
github.com/hashicorp/terraform-plugin-sdk/v2@v2.20.0/helper/resource/state.go:83 +0x1a8

Error: The terraform-provider-tencentcloud_v1.82.42 plugin crashed!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions