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

Error creating ManagedZone: googleapi: Error 403: Forbidden, forbidden #20808

Open
silvaes97 opened this issue Jan 3, 2025 · 2 comments
Open

Comments

@silvaes97
Copy link

silvaes97 commented Jan 3, 2025

Community Note

I have recreated the problem with role dns.admin and dns.peer and owner, also with older versions of provider

Terraform Version & Provider Version(s)

Terraform v1.8.5
on linux

  • provider registry.terraform.io/hashicorp/google v6.14.1
  • provider registry.terraform.io/hashicorp/google-beta v6.14.1

Affected Resource(s)

google_dns_managed_zone

Terraform Configuration

resource "google_dns_managed_zone" "peering-zone" {
name = "peering-zone"
provider = google
dns_name = "googleapis.com."
description = "Example private DNS peering zone"
project = "project02"

visibility = "private"

private_visibility_config {
networks {
network_url = "https://www.googleapis.com/compute/v1/projects/project02/global/networks/vpc02"
}
}

peering_config {
target_network {
network_url = "https://www.googleapis.com/compute/v1/projects/project01/global/networks/vpc01"
}
}
}

Debug Output

No response

Expected Behavior

No response

Actual Behavior

No response

Steps to reproduce

  1. terraform apply

Important Factoids

No response

References

No response

b/387532130

@silvaes97 silvaes97 added the bug label Jan 3, 2025
@github-actions github-actions bot added forward/review In review; remove label to forward service/cloud-dns labels Jan 3, 2025
@zli82016 zli82016 removed the forward/review In review; remove label to forward label Jan 3, 2025
@zli82016
Copy link
Collaborator

zli82016 commented Jan 3, 2025

I can reproduce this issue.

Response:
{
"error": {
"code": 403,
"message": "Forbidden",
"errors": [
{
"message": "Forbidden",
"domain": "global",
"reason": "forbidden"
}
]
}
}

@zli82016
Copy link
Collaborator

zli82016 commented Jan 3, 2025

Forwarding the issue to the service team to check if it is a permission issue.

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