-
-
Save clstokes/2e8f5be18d05539e0b2269aa667c71e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14:14:24 [pulumi-vpc-import] $ pulumi up | |
Previewing update (dev): | |
Type Name Plan | |
+ pulumi:pulumi:Stack pulumi-vpc-import-dev create | |
+ ├─ aws:ec2:Vpc main create | |
+ └─ aws:ec2:Subnet main create | |
Resources: | |
+ 3 to create | |
Do you want to perform this update? yes | |
Updating (dev): | |
Type Name Status | |
+ pulumi:pulumi:Stack pulumi-vpc-import-dev created | |
+ ├─ aws:ec2:Vpc main created | |
+ └─ aws:ec2:Subnet main created | |
Outputs: | |
subnetId: "subnet-08bd1fbc67db3a08f" | |
vpcId : "vpc-0853b80ab2ca4f583" | |
Resources: | |
+ 3 created | |
Duration: 13s | |
Permalink: https://app.pulumi.com/clstokes/pulumi-vpc-import/dev/updates/1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as v from "./vpc"; | |
import * as s from "./subnet"; | |
export const vpcId = v.vpc.id; | |
export const subnetId = s.subnet.id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as aws from "@pulumi/aws"; | |
import * as vpc from "./vpc"; | |
export const subnet = new aws.ec2.Subnet("main",{ | |
vpcId: vpc.vpc.id, | |
cidrBlock: "10.0.0.0/16", | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as aws from "@pulumi/aws"; | |
export const vpc = new aws.ec2.Vpc("main",{ | |
cidrBlock: "10.0.0.0/16", | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment