Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating tags of public IP assigned to NAT gateway #2142

Open
12345ieee opened this issue Jun 18, 2024 · 1 comment
Open

Updating tags of public IP assigned to NAT gateway #2142

12345ieee opened this issue Jun 18, 2024 · 1 comment
Labels
bug In-Progress Terraform Team is working on the reproduce & fix

Comments

@12345ieee
Copy link

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 and Provider Version

Terraform v1.8.5
on linux_amd64
+ provider registry.terraform.io/hashicorp/null v3.2.2
+ provider registry.terraform.io/oracle/oci v5.44.0

Affected Resource(s)

oci_core_public_ip with oci_core_nat_gateway.

Terraform Configuration Files

resource "oci_core_public_ip" "myip" {
  compartment_id = var.compartment_id
  lifetime       = "RESERVED"

  defined_tags = var.defined_tags # <--- we're changing this map
}

resource "oci_core_nat_gateway" "mynat" {
  compartment_id = var.compartment_id
  vcn_id         = var.vcn_id

  public_ip_id = oci_core_public_ip.myip.id
}

Debug Output

None needed, plan goes through as one would expect:

  # oci_core_public_ip.myip will be updated in-place
  ~ resource "oci_core_public_ip" "myip" {
      ~ defined_tags         = {
           [REDACTED]
        }
        id                   = "[REDACTED]"
        # (10 unchanged attributes hidden)
    }

Panic Output

None happens.

Expected Behavior

Apply goes through.

Actual Behavior

Apply doesn't go through, errors with:
Error: 404-NotAuthorizedOrNotFound, Cannot update public IP assigned to an entity of type NAT_GATEWAY
but I'm just changing the tags, I should be allowed to do this.

Steps to Reproduce

  1. Create base config
  2. terraform apply
  3. Edit the tags map
  4. terraform apply

Important Factoids

None.

References

None.

@12345ieee 12345ieee added the bug label Jun 18, 2024
@tf-oci-pub tf-oci-pub added the In-Progress Terraform Team is working on the reproduce & fix label Jun 19, 2024
@tf-oci-pub
Copy link
Member

Thank you for reporting the issue. We have raised an internal ticket to track this. Our service engineers will get back to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug In-Progress Terraform Team is working on the reproduce & fix
Projects
None yet
Development

No branches or pull requests

2 participants