sparse-intern-71089
02/17/2021, 6:51 PMsparse-state-34229
02/17/2021, 6:56 PMbored-oyster-3147
02/17/2021, 6:57 PMpulumi up
is called and I need to get it into the stacksparse-state-34229
02/17/2021, 6:58 PMexport("build.id", build_id)
in the other stack?bored-oyster-3147
02/17/2021, 6:58 PMbored-oyster-3147
02/17/2021, 6:59 PMsparse-state-34229
02/17/2021, 6:59 PMbored-oyster-3147
02/17/2021, 7:02 PMpulumi up
so the pipeline needs to pass it in. I want to avoid using environment variables because we have plans to migrate to automation API and environment variables do not make sense there. I've been trying to get something like this to work:
internal class MyStack : Stack
{
[NotNull]
[Input(nameof(BuildNumber), required: true)]
public Input<string>? BuildNumber { get; set; }
public MyStack()
{
// use build number here
}
}
the way that you would do it in other resources but it doesn't appear like that is checked, and I wouldn't know how to pass it to pulumi up
. So I'm trying to figure out what the pattern should be / is supposed to besparse-state-34229
02/17/2021, 7:05 PMpulumi up -c
bored-oyster-3147
02/17/2021, 7:06 PMsparse-state-34229
02/17/2021, 7:08 PMsparse-state-34229
02/17/2021, 7:12 PMsparse-state-34229
02/17/2021, 7:26 PMbored-oyster-3147
02/17/2021, 8:09 PM