-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a31bb9f
commit 12a5981
Showing
6 changed files
with
331 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
internal/stacks/stackruntime/testdata/mainbundle/test/deferrable-component/main.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
terraform { | ||
required_providers { | ||
testing = { | ||
source = "hashicorp/testing" | ||
version = "0.1.0" | ||
} | ||
} | ||
} | ||
|
||
variable "id" { | ||
type = string | ||
default = null | ||
nullable = true # We'll generate an ID if none provided. | ||
} | ||
|
||
variable "defer" { | ||
type = bool | ||
} | ||
|
||
resource "testing_deferred_resource" "data" { | ||
id = var.id | ||
deferred = var.defer | ||
} |
31 changes: 31 additions & 0 deletions
31
internal/stacks/stackruntime/testdata/mainbundle/test/deferrable-component/main.tfstack.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
required_providers { | ||
testing = { | ||
source = "hashicorp/testing" | ||
version = "0.1.0" | ||
} | ||
} | ||
|
||
provider "testing" "default" {} | ||
|
||
variable "id" { | ||
type = string | ||
} | ||
|
||
variable "defer" { | ||
type = bool | ||
} | ||
|
||
component "self" { | ||
source = "./" | ||
|
||
|
||
providers = { | ||
testing = provider.testing.default | ||
} | ||
|
||
inputs = { | ||
id = var.id | ||
defer = var.defer | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters