bumpy-summer-9075
04/07/2021, 5:54 PMconst vpcId = terraformState.outputs["vpc_id"];
const infraVPC = await aws.ec2.getVpc({ id: vpcId });
const vpcId = terraformState.outputs["vpc_id"];
const infraVPC = await aws.ec2.getVpc({ id: vpcId.get() });
since getVpc
doesn't accept Inputs/Ouputs, how can I achieve this?red-match-15116
04/07/2021, 6:00 PMconst vpcId = terraformState.outputs["vpc_id"];
const infraVPC = vpcId.apply(id => aws.ec2.getVpc({ id }));
bumpy-summer-9075
04/07/2021, 6:03 PM