mirror of
https://github.com/hashicorp/terraform.git
synced 2026-04-21 14:18:43 -04:00
26 lines
362 B
Terraform
26 lines
362 B
Terraform
|
|
|
||
|
|
variable "interrupts" {
|
||
|
|
type = number
|
||
|
|
}
|
||
|
|
|
||
|
|
resource "test_resource" "primary" {
|
||
|
|
value = "primary"
|
||
|
|
}
|
||
|
|
|
||
|
|
resource "test_resource" "secondary" {
|
||
|
|
value = "secondary"
|
||
|
|
interrupt_count = var.interrupts
|
||
|
|
|
||
|
|
depends_on = [
|
||
|
|
test_resource.primary
|
||
|
|
]
|
||
|
|
}
|
||
|
|
|
||
|
|
resource "test_resource" "tertiary" {
|
||
|
|
value = "tertiary"
|
||
|
|
|
||
|
|
depends_on = [
|
||
|
|
test_resource.secondary
|
||
|
|
]
|
||
|
|
}
|