I have the runscope api monitoring resources. I created these resources by using terraform. How can I cleanup these runscope services?

huangapple go评论66阅读模式
英文:

I have the runscope api monitoring resources. I created these resources by using terraform. How can I cleanup these runscope services?

问题

我使用 Terraform 创建了 Runscope API 监控资源。我想使用 Terraform 清理这些资源。

resource "runscope_test" "api" {
    name        = "api-test"
    description = "检查 API 是否正常运行"
    bucket_id   = runscope_bucket.main.id
}
英文:

I created runscope api monitoring resources by using terraform. I want to cleanup those by using terraform.

resource "runscope_test" "api" {
    name        = "api-test"
    description = "checks the api is up and running"
    bucket_id   = runscope_bucket.main.id
}

答案1

得分: 2

使用terraform destroy命令,或者如果你想更具体一些,可以使用-target选项:

terraform destroy -target="runscope_test.api"
英文:

Use terraform destory or if you want to be more specific, use -target option:

terraform destroy -target="runscope_test.api"

huangapple
  • 本文由 发表于 2023年8月9日 12:13:13
  • 转载请务必保留本文链接:https://go.coder-hub.com/76864527.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定