google_project_service
fails if service is disabled outside of terraform
#9841
Labels
google_project_service
fails if service is disabled outside of terraform
#9841
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)
google_project_service
Terraform Configuration Files
Debug Output
N/A
Panic Output
N/A
Expected Behavior
The
google_project_service
resource should have noticed thatcloudbuild.googleapis.com
was disabled, and tried to re-enable it.Actual Behavior
Steps to Reproduce
terraform apply
cloudbuild.googleapis.com
terraform plan
Important Factoids
Nothing special about our setup that would affect this.
Taking a look at the code, it looks like this changed ~11 months ago: https://github.com/hashicorp/terraform-provider-google/blame/46a8f7fed32d6ae19895c62edcd06482d47615e7/google/resource_google_project_service.go#L222-L230
Previously the resource did what I would expect: https://github.com/hashicorp/terraform-provider-google/blame/cf7d21afe9bcfed4a544d339cba58c22287cc53e/google/resource_google_project_service.go#L190-L192
I didn't note anything in the changelog (https://github.com/hashicorp/terraform-provider-google/blob/master/CHANGELOG.md) that indicated this change in behavior was expected.
References
None that I could find.
The text was updated successfully, but these errors were encountered: