Closed d-costa closed 1 year ago
@d-costa you are right. The behavior has been updated on most data sources by this PR in v5.0.0
The original issue was https://github.com/hashicorp/terraform-provider-google/issues/12873
Please go through the links above to see if that make sense.
Thank you for your response @edwardmedia
I understand the objective of the PR you mentioned, and I am not contesting its benefits, but this prevents the use case that even the documentation describes. We cannot check if the service is enabled if we can only use it with enabled services:
Verify the API service for the Google Cloud Platform project to see if it is enabled or not. (https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/google_project_service)
@trodge what do you think about this?
It looks like this was an intended change for all data sources in 5.0.0 based on https://github.com/hashicorp/terraform-provider-google/issues/12873.
That being said, it's possible the behavior is not appropriate for this data source in particular, since the main use case for data_source_google_project_service
would be determining whether a service is enabled.
@NickElliot might have more context having made the change in https://github.com/GoogleCloudPlatform/magic-modules/pull/8858.
I think it would make sense to remove it for this data source as an exception, as it is the intended usage case for this specific data source.
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Actual Behavior
Steps to Reproduce
terraform apply
Important Factoids
4.84.0
References
I believe this change was not intended, because it prevents the requested use case.