many-yak-61188
09/17/2021, 11:15 AMstring
within options
for logConfiguration
. Unlike the require
method which return the raw type the requireSecret
method returns an Output<string>
type.
I noticed a similar requirement for passing in environments
in handled by specifying a type of pulumi.Input<KeyValuePair[]>
where as LogConfigurations.options
has the type [key: string]: string;
Can I use an Output
type with LogConfigurations.options
?prehistoric-activity-61023
09/17/2021, 11:28 AMOutput<X>
to functions that do not expect Input<X>
Output<X>
is a wrapper for type X
and it’s necessary because the value might not be available at the beginning (because for example it comes from other cloud resources created dynamically)logConfiguration
.logConfiguration
value using pulumi apply
functionOutput<string>
called mySecret
you should write (treat it as a hint and not a working example - I usually use python with pulumi):
...
logConfiguration: mySecret.apply(s => {
foo: "bar",
options: s
}),
instead of:
...
logConfiguration: {
foo: "bar",
options: mySecret
},
many-yak-61188
09/18/2021, 1:03 PM