-
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
Error: Provider produced inconsistent result after apply #6486
Comments
@Pritilender can you take a look below solution and see if that helps address your issue? |
@edwardmedia I've tried the approach with |
@Pritilender can you post the new code with |
Yes, here's the code: provider "google" {
version = "~> 3.0"
project = "m-tools-terraform-admin"
}
resource "google_project" "foo" {
name = "foo-bar-baz"
project_id = "foo-bar-baz-test"
org_id = var.organization_id
billing_account = var.billing_account_id
}
resource "null_resource" "delay" {
provisioner "local-exec" {
command = "sleep 60"
}
triggers = {
"project" = "${google_project.foo.id}"
}
}
resource "google_project_service" "foo" {
project = google_project.foo.id
service = "firebase.googleapis.com"
disable_dependent_services = true
depends_on = [null_resource.delay]
} |
@Pritilender there is an issue resource "google_project_service" "foo" {
project = google_project.foo.project_id
service = "firebase.googleapis.com"
disable_dependent_services = true
} |
@Pritilender Please try to use |
@edwardmedia Sorry for taking me a few days to reply. Changing |
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 👉 hashibot-feedback@hashicorp.com. Thanks! |
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
Gist to the debug output
Panic Output
Expected Behavior
The API service should been enabled for the project.
Actual Behavior
I get following error from TF: "Error: Provider produced inconsistent result after apply"
And the API service is not enabled, even after multiple apply runs.
Steps to Reproduce
terraform apply
Important Factoids
References
I saw a few of issues with similar name, but from my investigation, there is no issue regarding
google_project_service
resource.The text was updated successfully, but these errors were encountered: