Skip to content

Schematic uses the incorrect Id #189

@Cryowatt

Description

@Cryowatt

I've run into an issue with Schematic where it seems to be returning the wrong value for Id. When checking my schematic resource details on the Pulumi dashboard, there's two Id fields. Id, the common resource Id field. And the id property, which seems to contain the correct schematic ID. When referencing the output id for use in a dependent resource, the wrong value for id appears to be used.

Here's a real example from one of my current stacks:
Image

If I pass the same schematic to image factory. I get the
4a0d65c669d46663f377e7161e50cfd570c401f26fd9e7bda34a0216b6f1922b id, which is what I expect. However, when I write something like this:

const mySchematic = new talos.imagefactory.Schematic("mySchematic", {
    // ...
})

export const imageUrls = talos.imagefactory.getUrlsOutput({
    schematicId: mySchematic.id,
    platform: "metal",
});

Instead of the id I expect, I'm seeing dd20e70ae98bc71b066719ff0d83ee380f1a562360cd622e4b4d1ffe26bdba29 passed through. I'm not sure where the other id is getting generated, but it doesn't resolve to a valid image so when I attempt to use the generated image factory URLs they return 404.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions