in the first part, its probably that vpc.getOutput...
# general
b
in the first part, its probably that vpc.getOutput() is type-inferring to "any" so you're not getting a type error for passing a string[] to subnetMappings