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

Missing Ingress_from documentation for VPC Service Controls resources for using networks as incoming source #18142

Open
daanheikens opened this issue May 15, 2024 · 1 comment

Comments

@daanheikens
Copy link

daanheikens commented May 15, 2024

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.
  • If an issue is assigned to a user, that user is claiming responsibility for the issue.
  • Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.

Description

According to the API reference, the IngressSource object reflecting the ingress_from[].sources[] fields in the google_access_context_manager_service_perimeter should support networks as an option for the resource field. The documentation currently does not reflect this.

Source:https://cloud.google.com/access-context-manager/docs/reference/rest/v1/accessPolicies.servicePerimeters#IngressSource

New or Affected Resource(s)

  • google_access_context_manager_service_perimeter
  • google_access_context_manager_service_perimeter_ingress_policy

Potential Terraform Configuration

resource "google_access_context_manager_service_perimeter_ingress_policy" "ingress_policy" {
  perimeter = "${google_access_context_manager_service_perimeter.storage-perimeter.name}"
  ingress_from {
    identity_type = "any_identity"
    sources {
      resource = "//compute.googleapis.com/projects/example-project/global/networks/example-network"
    }
  }
  ingress_to {
    resources = ["*"]
    operations {
      service_name = "bigquery.googleapis.com"
      method_selectors {
        method = "*"
      }
    }
  }
  lifecycle {
    create_before_destroy = true
  }
}

References

https://cloud.google.com/access-context-manager/docs/reference/rest/v1/accessPolicies.servicePerimeters#ingresssource
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/access_context_manager_service_perimeter_ingress_policy#resource

b/341749801

@daanheikens
Copy link
Author

I can pick this one up, adding examples, docs and tests.

@melinath melinath added documentation and removed enhancement forward/review In review; remove label to forward labels May 20, 2024
@melinath melinath added this to the Goals milestone May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants