https://pulumi.com logo
Title
c

creamy-minister-70065

03/02/2021, 12:24 PM
I have used this code to create Instance const eip = new aws.ec2.Eip("myeip"); const securityGroup = new aws.ec2.SecurityGroup("mysecuritygroup", { ingress: [ { protocol: "tcp", fromPort: 80, toPort: 80, cidrBlocks: ["0.0.0.0/0"] }, ], }); const vpc = new aws.ec2.Vpc("myvpc", { cidrBlock: "10.0.0.0/16" }) const internetGateway = new aws.ec2.InternetGateway("myinternetgateway", { vpcId: vpc.id, }); const publicRouteTable = new aws.ec2.RouteTable("myroutetable", { routes: [ { cidrBlock: "0.0.0.0/0", gatewayId: internetGateway.id, }, ], vpcId: vpc.id, }); I was able to create security groups, eip & vpc but the code doesn't able to create the instance. Can anyone help me creating instance using pulumi
h

high-grass-3103

01/31/2022, 4:38 PM
can't see new aws.ec2.Instance