mirror of
https://github.com/hashicorp/terraform.git
synced 2026-03-28 13:23:36 -04:00
Components can emit sensitive values as outputs, which can be consumed as inputs to other components. This commit ensures that such values are correctly processed in order to pass their sensitivity to the modules runtime.
19 lines
235 B
HCL
19 lines
235 B
HCL
stack "sensitive" {
|
|
source = "../sensitive-output"
|
|
|
|
inputs = {
|
|
}
|
|
}
|
|
|
|
component "self" {
|
|
source = "./"
|
|
|
|
inputs = {
|
|
secret = stack.sensitive.result
|
|
}
|
|
}
|
|
|
|
output "result" {
|
|
type = string
|
|
value = component.self.result
|
|
}
|