full-dress-10026
11/27/2018, 8:56 PMNetwork
from an existing VPC with this code:
const network = infra.Network.fromVpc("network", {
vpcId: datomicVpcId,
subnetIds: datomicSubnets,
publicSubnetIds: datomicSubnets,
securityGroupIds: [appSecurityGroupId],
usePrivateSubnets: false
});
subnetIds
and publicSubnetIds
are marked as Type 'Output<any[]>' is not assignable to type 'Input<Input<string>>[]'
. datomicSubnets
is defined as:
export let datomicSubnets = datomicStorageStack.outputs.apply(o => [o["Subnet0"], o["Subnet1"], o["Subnet2"]]);
Is there a way to make this work?lemon-spoon-91807
11/27/2018, 10:08 PMwhite-balloon-205
export let datomicSubnets = [
datomicStorageStack.outputs.apply(o => o["Subnet0"]),
datomicStorageStack.outputs.apply(o => o["Subnet1"]),
datomicStorageStack.outputs.apply(o => o["Subnet1"]),
];
Input<Input<string>>[]
is very odd though - looks like that's probably a bug in the implementation of Network
? (There are two layers of Input
around string
, but none around the []
as is normal)lemon-spoon-91807
11/27/2018, 10:10 PMwhite-balloon-205
lemon-spoon-91807
11/27/2018, 10:10 PMfull-dress-10026
11/27/2018, 10:10 PMlemon-spoon-91807
11/27/2018, 10:11 PMInput<string>[]
or Input<Input<string>[]>
.white-balloon-205
@white-balloon-205’s solution worked.Great.
lemon-spoon-91807
11/27/2018, 10:12 PM