Another alternative that should work for the above...
# general
w
Another alternative that should work for the above would be something along the lines of:
Copy code
let serviceVpcId = service.ecsService.networkConfiguration.apply(async (networkConfig) => {
    let subnetId = networkConfig["subnets"][0];
    let subnet = await aws.ec2.getSubnet({ id: subnetId });
    return subnet.vpcId;
});