-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Google beta incorrectly replaces project for policy attestor. #3729
Google beta incorrectly replaces project for policy attestor. #3729
Comments
Hey @steakunderscore! Are you able to attach debug logs? |
https://github.com/hashicorp/terraform/issues/21498 appears to be the cause. I'll work around this in the provider in the meantime. |
Thanks for looking into this @rileykarson. It looks like you have been able to reproduce this, do you still want the debug logs? |
Yeah, they shouldn't be necessary. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Community Note
Terraform Version
Terraform v0.11.7
plugin.terraform-provider-google-beta_v2.7.0_x4
Affected Resource(s)
google_binary_authorization_policy.policy
Terraform Configuration Files
Debug Output
Expected Behaviour
I'm running Kubenetes on GCP using Binary Authorisation with the multi-project setup. I expect to be able to write policies to the project using TF where the attestor and attestations are in a different project to the cluster.
The cluster is running on
the-kube-project
. Where the attestors and attestations are in thethe-attestations-project
. It looks like TF is reading the config correctly:But when it goes to apply the config, it seems to looking in the wrong project for the attestor:
The error message is technically correct, the referenced attestor doesn't exist. But I should not be replacing the project, so it is looking in the wrong project for the attestor.
Steps to Reproduce
Using above config
terraform apply
References
The text was updated successfully, but these errors were encountered: