Skip to content

Ignore policy for ip_configuration["authorized_networks"] #740

@awakzdev

Description

@awakzdev

TL;DR

I'd love to check the possibility of adding an ignore policy to the module as alot of changes are being done manually and it is a hassle of adding all of them to IAC

Terraform Resources

* [`google_sql_database_instance`](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/sql_database_instance#nestedipconfigurationignored) documentation shows that `lifecycle.ignore_changes = [ settings[0].ip_configuration[0].authorized_networks ]` suppresses this drift.
* Module repo: `terraform-google-modules/terraform-google-sql-db`

Detailed design

**Proposed interface**


variable "ignore_authorized_networks" {
  description = "If true, Terraform will ignore changes to ip_configuration.authorized_networks."
  type        = bool
  default     = false
}

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions