gorgeous-minister-4113103/09/2023, 11:41 PM
to prevent URN conflicts? It feels repetitive to have to include some sort of prefix for multiple instances of the ComponentResource..
isn't actually used as part of the URN constructor... or I'm doing something wrong....
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-1056903/09/2023, 11:49 PM
if 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-4113103/10/2023, 12:31 AM
Resources 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.