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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resource security_zones adding new object forces replacement #209

Open
mmaciejc opened this issue Dec 11, 2024 · 0 comments
Open

resource security_zones adding new object forces replacement #209

mmaciejc opened this issue Dec 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mmaciejc
Copy link
Contributor

Order is not important as this is map:

resource "fmc_security_zones" "module" {
      ~ id     = "30a97157-ccb1-42a9-a72a-f3c8b23cbb9f" -> (known after apply)
      ~ items  = {
          + "DMZ_1" = {
              + id             = (known after apply)
              + interface_type = "ROUTED" # forces replacement
              + type           = "SecurityZone"
            },
          ~ "DMZ_2" = {
              ~ id             = "2c779762-b750-11ef-ad56-7211a706a468" -> (known after apply)
                # (2 unchanged attributes hidden)
            },
          + "OUTSIDE" = {
              + id             = (known after apply)
              + interface_type = "ROUTED" # forces replacement
              + type           = "SecurityZone"
            },

Resource should only add new zones and leave old untouched.

@mmaciejc mmaciejc added the bug Something isn't working label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant