hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.27k stars 1.72k forks source link

Add purpose field to google_network_security_address_group. #18624

Open carloshdezbueno opened 1 month ago

carloshdezbueno commented 1 month ago

Community Note

Description

Basically the address groups are ment to be used for cloud armor but to be able to use them for it, it needs to be configured with that purpose. Therefore, if the purpose cant be set to "CLOUD_ARMOR", the address group cant be used for it

New or Affected Resource(s)

Potential Terraform Configuration

resource "google_network_security_address_group" "default" {
  name        = "my-address-groups"
  parent      = "projects/my-project-name"
  location    = "us-central1"
  type        = "IPV4"
  purpose = "CLOUD_ARMOR
  capacity    = "100"
  items       = ["208.80.154.224/32"]
}

References

No response

b/351843093

BBBmau commented 1 month ago

API Reference Link: https://cloud.google.com/service-mesh/docs/reference/network-security/rest/v1beta1/organizations.locations.addressGroups

zli82016 commented 1 month ago

The purpose field is added to google_network_security_address_group in beta provider now in https://github.com/GoogleCloudPlatform/magic-modules/pull/11059