Skip to content

Instantly share code, notes, and snippets.

@clstokes

clstokes/_output Secret

Created June 4, 2019 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clstokes/2e8f5be18d05539e0b2269aa667c71e2 to your computer and use it in GitHub Desktop.
Save clstokes/2e8f5be18d05539e0b2269aa667c71e2 to your computer and use it in GitHub Desktop.
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
import * as v from "./vpc";
import * as s from "./subnet";
export const vpcId = v.vpc.id;
export const subnetId = s.subnet.id;
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",
});
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