const myVpc = new aws.ec2.Vpc("myVpc", {     cidrB...
# aws
c
const myVpc = new aws.ec2.Vpc("myVpc", {     cidrBlock: "10.0.0.0/16",     tags: {         Name: "DemoVpc",     }, }); const mySubnet = new aws.ec2.Subnet("mySubnet", {     vpcId: myVpc.id,     cidrBlock: "10.0.0.0/16",     tags: {         Name: "DemoSubnet",     }, }); const fooNetworkInterface = new aws.ec2.NetworkInterface("ExcelNetworkInterface", {     subnetId: mySubnet.id,     privateIps: ["10.0.0.100"],     tags: {         Name: "primary_network_interface",     }, }); const fooInstance = new aws.ec2.Instance("fooInstance", {     ami: "ami-008806d238cf70838",     instanceType: "t2.micro",     networkInterfaces: [{         networkInterfaceId: fooNetworkInterface.id,         deviceIndex: 0,     }],     creditSpecification: {         cpuCredits: "unlimited",     }, });
I am using this code for creating instance
I am getting error creating the instances.
Can anyone help me with the code creating the EC2 instance
g
Can you share the output from
pulumi up -v9 --logtostderr
?