white-processor-23859
09/23/2021, 10:29 PMDuplicate resource URN 'urn:pulumi:amis::amis::aws:imagebuilder/imageRecipe:ImageRecipe::asdf'; try giving it a unique name
. Any recommendations?prehistoric-london-9917
09/23/2021, 11:23 PMDuplicate resource URN
makes me think you’re doing something like new aws.imagebuilder.Recipe('asdf', {...});
multiple times in your code somehow.little-cartoon-10569
09/23/2021, 11:29 PMwhite-processor-23859
09/23/2021, 11:39 PMfunction Recipe({ name, version, components }: RecipeArgs): ImageRecipe {
return new ImageRecipe(name + version, { name, components, ...otherStuff });
}
const recipe1 = Recipe({
name: "asdf",
version: "0.0.1",
components: []
});
const recipe2 = Recipe({
name: "asdf",
version: "0.0.2",
components: [ SomeComponent ]
});
little-cartoon-10569
09/24/2021, 1:45 AMwhite-processor-23859
09/24/2021, 6:03 PM