You need to make your subnet array an InputList<> or InputArray<> type, I don't remember what it's called in your sdk. But pulumi provides an Input collection type and as the error says, your element is not of the Input type.
bored-oyster-3147
07/19/2022, 11:45 PM
Or the Output collection type more specifically, but Inputs cast to Outputs so both would work here.