sparse-intern-71089
04/23/2019, 3:58 PMwhite-balloon-205
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
async function getAllSubnets(): Promise<aws.ec2.GetSubnetResult[]> {
const subnetIds = await aws.ec2.getSubnetIds({
vpcId: "vpc-c93b06ae",
});
const results: aws.ec2.GetSubnetResult[] = [];
for (const subnetId of subnetIds.ids) {
const subnet = await aws.ec2.getSubnet({
id: subnetId,
});
results.push(subnet);
}
return results;
}
export const allSubnets = getAllSubnets();
damp-pillow-67781
04/23/2019, 6:37 PMNo matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by