Skip to content
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

time_sleep has not been defined in the project, it seems the resource must be created #23

Open
fcomuniz opened this issue Jan 13, 2025 · 0 comments

Comments

@fcomuniz
Copy link

depends_on = [time_sleep.wait_for_cluster]

chatgpt generated solution

resource "time_sleep" "wait_for_cluster" {
  # Ensure Terraform waits for the mgc_kubernetes_cluster before sleeping
  depends_on = [
    mgc_kubernetes_cluster.cluster_with_nodepool
  ]
  
  # Use the variable "timer_duration" to decide how long to wait
  create_duration = var.timer_duration
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant