https://pulumi.com logo
#general
Title
# general
w

white-balloon-205

09/25/2018, 12:48 AM
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;
});