/
githubmirror
/
terraform
Обзор
Документация
Войти
/
githubmirror
/
terraform
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
internal/stacks/stackruntime/testdata/mainbundle/test/failed-dependency/failed-dependency.tf
57 строк
927 B
Liam Cervante
stacks: remove stale state during Stack apply operations (#35639)
28 авг 2024, 10:23
Не верифицирован
28 авг 2024, 10:23
cb7bae3
Код
Авторство
О чём код?
terraform { required_providers { testing = { source = "hashicorp/testing" version = "0.1.0" } } } variable "failed_id" { type = string default = null nullable = true # We'll generate an ID if none provided. } variable "resource_id" { type = string default = null nullable = true # We'll generate an ID if none provided. } variable "input" { type = string default = null nullable = true } variable "fail_plan" { type = bool default = null nullable = true } variable "fail_apply" { type = bool default = null nullable = true } resource "testing_failed_resource" "data" { id = var.failed_id value = var.input fail_plan = var.fail_plan fail_apply = var.fail_apply } resource "testing_resource" "data" { id = var.resource_id depends_on = [ testing_failed_resource.data ] } output "value" { value = testing_failed_resource.data.value }