This message was deleted.
# typescript
s
This message was deleted.
b
I used to have
subnetId: vpc.publicSubnetIds[0]
s
You could try something like
Copy code
subnetId: vpc.publicSubnetIds.apply(s => s[0])
or maybe
Copy code
const subnet = vpc.publicSubnetIds.then((subnetId: string[]) => { return subnetId[0]});
b
thanks, I'll try that