Skip to content

fortios_logfortianalyzer_setting attributes updating on every apply #410

@zippanto

Description

@zippanto

Hi,

When using fortios_logfortianalyzer_setting resource after the initial apply every subsequent terraform apply will try to update some of the attributes. These attributes are not assigned by us. Please see below.

Resource

resource "fortios_logfortianalyzer_setting" "logfortianalyzer_setting" {
  status        = "enable"
  server        = "xxx"
  upload_option = "realtime"
  reliable      = "enable"
  source_ip     = 1.2.3.4

  serial {
    name = "FAZ-xxxxxxxx"
  }
}

terraform apply output

  # fortios_logfortianalyzer_setting.logfortianalyzer_setting will be updated in-place
  ~ resource "fortios_logfortianalyzer_setting" "logfortianalyzer_setting" {
      - faz_type                     = 1 -> null
        id                           = "LogFortianalyzerSetting"
      - mgmt_name                    = "xxx" -> null
      - upload_time                  = "00:59" -> null
        # (29 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

As a temporary workaround we are defining the attributes under lifecycle ignore_changes.

Please advise.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions