gorgeous-minister-41131
03/09/2023, 11:41 PMComponentResource
to prevent URN conflicts? It feels repetitive to have to include some sort of prefix for multiple instances of the ComponentResource..name
isn't actually used as part of the URN constructor...
or I'm doing something wrong....f"foo:aws:FooVpcComponent:{name}"
but all the examples I saw only show 3 components for that value and so I felt like that was not the right way to do this...little-cartoon-10569
03/09/2023, 11:49 PMif I do not use the base_name as part of the resource_str of the child resources, I get a conflict when instantiating FooVpcComponent. Maybe this is by design and it's my responsibility to ensure this uniqueness?Exactly.
gorgeous-minister-41131
03/10/2023, 12:31 AMResources constructed as children of a component resource should ensure their names are unique across multiple instances of the component resource. In general, the name of the component resource instance itself (the name parameter passed into the component resource constructor) should be used as part of the name of the child resources.