public_ip: fail to reassign Server
Opened this issue ยท 1 comments
teacherSsamko commented
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 other comments that do not add relevant new information or questions, 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 CLI and Terraform Ncloud Provider Version
Terraform version : Terraform v1.5.5 on darwin_arm64
Ncloud Provider version : v2.3.18
Affected Resource(s)
- ncloud_public_ip
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
# 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
...
resource "ncloud_server" "server" {
subnet_no = ncloud_subnet.test.id
name = "my-tf-server"
server_image_product_code = "SW.VSVR.OS.LNX64.UBNTU.SVR2004.B050"
server_product_code = data.ncloud_server_products.spec.server_products[0].product_code
login_key_name = ncloud_login_key.loginkey.key_name
init_script_no = ncloud_init_script.init.init_script_no
}
resource "ncloud_public_ip" "test" {
server_instance_no = ncloud_server.server.instance_no
}
Debug Output
ncloud_public_ip.test: Modifying... [id=19086888]
โท
โ Error: Status: 400 Bad Request, Body: {
โ "responseError": {
โ "returnCode": "1080103",
โ "returnMessage": "Unassigned Authorized IP."
โ }
โ }
โ
โ with ncloud_public_ip.test,
โ on main.tf line 77, in resource "ncloud_public_ip" "test":
โ 77: resource "ncloud_public_ip" "test" {
โ
โต
Panic Output
Expected Behavior
When I modify server that needs to be replaced, 'public_ip' should be assigned to the new server
Actual Behavior
Fail to be assigned to new server
Steps to Reproduce
- 'modify 'product_code' inside server'
terraform apply
Important Factoids
References
- #0000
djdhyun-gglabs commented
I'm suffering from this issue as well.