-
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
Problem with datadource google_certificate_manager_certificates #19660
Comments
Confirmed issue! When trying to use the On the other hand I got no errors using this configuration. I suggest you check your project name and certificate name and try again. Used configuration:
|
Thanks for checking and yes, when I use this configuration in my project it works. I usually don't use provider block with project configuration.
|
Thanks for raising up this issue @mXtone Just to double check, this issue is not a blocker for defining a Certificate data source, right? (As the project value can be injected directly in the filter value as pointed by @ggtisc) On the other hand, as per my initial investigation, it seems that the root cause of the issue is the missing definition of the So I believe that a PR is needed by the service team/contributors to address the root cause of this issue if the analysis is correct. |
I can verify this is still an issue with terraform {
required_version = ">= 1.10.0"
required_providers {
google = {
source = "hashicorp/google"
version = "~> 6.13"
}
google-beta = {
source = "hashicorp/google-beta"
version = "~> 6.13"
}
}
} This is my data source now: data "google_certificate_manager_certificates" "default" {
filter = "project:${data.google_project.bootstrap.number} AND name:api-${var.environment}-cert"
} and I get an error
when trying to add
I can't set the project at the provider level; this repository has terraform code for multiple projects that all share one definition of provider versions (DRY). For me this renders this data source unusable. |
Community Note
Terraform Version & Provider Version(s)
$ terraform --version
Terraform v1.9.5
on linux_amd64
Affected Resource(s)
data.google_certificate_manager_certificates
Terraform Configuration
1 option:
2 option:
Debug Output
No response
Expected Behavior
Create data object certificate
Actual Behavior
I got 2 errors:
1 option(error on validate):
2 option(error on plan):
Steps to reproduce
Use 1 option code with terraform validate command or use 2 code option with terraform plan command
Important Factoids
No response
References
No response
b/371425212
The text was updated successfully, but these errors were encountered: