Skip to content

A large node_id causes the int type to be converted to scientific notation, resulting in an error where the node_id cannot be found. #3652

@techgreen-bgs

Description

@techgreen-bgs

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

$ terraform -v
Terraform v1.14.2
on windows_386
+ provider registry.terraform.io/tencentcloudstack/tencentcloud v1.82.44

Affected Resource(s)

  • tencentcloud_organization_org_member

Terraform Configuration Files

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key: https://keybase.io/hashicorp
terraform {
  required_providers {
    tencentcloud = {
      source  = "tencentcloudstack/tencentcloud"
      version = "1.82.44"
    }
  }
}

provider "tencentcloud" {
  # Configuration options
  secret_id  = "xxxx"
  secret_key = "xxxxx"
  region     = "ap-singapore"
}

resource "tencentcloud_organization_org_member" "this" {
  name           = "tf_acc"
  node_id        = "2000xxxxxxxx"
  permission_ids = [1, 2, 7, ]
  policy_type    = "Financial"
  force_delete_account = false
  pay_uin              = "2000xxxxxxxx"
}

Debug Output

https://gist.github.com/techgreen-bgs/632c51f282ce679d43c0d37d047257ec

Panic Output

Expected Behavior

Create member account.

Actual Behavior

No member account created.

Steps to Reproduce

  1. Use correct node_id and pay_uin in string
  2. terraform init
  3. terraform apply --auto-approve

Important Factoids

References

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