https://pulumi.com logo
#typescript
Title
# typescript
b

billowy-needle-56870

10/15/2019, 10:32 AM
Hi I'm creating a new preview with the following code, but the process not finish. It's still waiting for creating the "VPC" resource. import * as pulumi from "@pulumi/pulumi"; import * as aws from "@pulumi/aws"; import * as awsx from "@pulumi/awsx"; const projectName = pulumi.getProject(); const region = aws.config.requireRegion(); const vpc = new awsx.ec2.Vpc(projectName + region, { cidrBlock: "10.10.0.0/16", subnets: [{type: "public"}, {type: "private"}] }); export const vpcId = vpc.id export const allVpcSubnets = vpc.privateSubnetIds.concat(vpc.publicSubnetIds);
a

acceptable-army-69872

10/15/2019, 1:30 PM
I've had previews not finish when I didn't have my creds set correctly, do you have api keys exported or AWS_PROFILE set? You can try running pulumi with --logtostderr and maybe findout if there are errors?
Also, more of a style thing, but there's some formatting you can do for code blocks to make them more readbable: https://slack.com/help/articles/202288908-format-your-messages#inline-code
b

billowy-needle-56870

10/15/2019, 2:49 PM
Thanks Patrick for your reply. I will share the code more carefully. I have executed the code looking at the logs and I have not seen any error. On the other hand, the error only occurs when using the "awsx" package, if I create the network using the "aws" package then there is no problem.