strong-nightfall-22614
11/14/2024, 8:59 PMbase-infra/dev
, and in our ESC document we have a section that looks like this:
values:
stackRefs:
fn::open::pulumi-stacks:
stacks:
baseInfra:
stack: base-infra/dev
But when we try to Open the document to see the resolved values (assuming this will pull the outputs from that stack) we get the following error:
XXXXXXXXXXXX:3:5 - values.stackRefs:
Error: missing Stack resource
strong-nightfall-22614
11/14/2024, 8:59 PMstrong-nightfall-22614
11/14/2024, 9:25 PMError: missing Stack resource
little-cartoon-10569
11/14/2024, 10:01 PMvalues.stackRefs
? I've just tried this and it's working:
values:
stackRefs:
fn::open::pulumi-stacks:
stacks:
demo:
stack: opsgenie-system/demo
pulumiConfig:
teamId: ${stackRefs.demo.appSupportTeamId}
little-cartoon-10569
11/14/2024, 10:02 PM{
"pulumiConfig": {
"teamId": "aaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
},
"stackRefs": {
"demo": {
"appSupportApiKey": "[secret]",
"appSupportTeamId": "aaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
}
}
}
strong-nightfall-22614
11/14/2024, 10:12 PMvalues.stackRefs
. Although here is the crazy thing. Before I wasn't referencing it in another property, but I added the reference in another property and now it is working. I guess it didn't like the stack reference just sitting out there without being references. Although now when I remove the reference it is still working 🤷strong-nightfall-22614
11/14/2024, 10:12 PMlittle-cartoon-10569
11/14/2024, 10:32 PMvalues.
anywhere and it works immediately. I don't think it's needed?