sparse-intern-71089
05/31/2023, 9:29 PMlittle-cartoon-10569
05/31/2023, 10:03 PMWhen it’s done, you’ll have a complete Pulumi project that’s ready to deploy and configured with the most common settings.
little-cartoon-10569
05/31/2023, 10:06 PMsome-airplane-33254
05/31/2023, 10:24 PMbillowy-army-68599
miniature-musician-31262
05/31/2023, 11:24 PMShould I expect the template to yield a deployable starting point?Definitely should, yeah, and sounds like this may be because of a missing default VPC. I haven't tried this myself, but you should be able to make a few tweaks to the template to create a new VPC and then use it by following the example here: https://www.pulumi.com/docs/clouds/aws/guides/ecs/#creating-an-ecs-cluster-in-a-vpc
miniature-musician-31262
05/31/2023, 11:25 PMbrainy-church-78120
06/01/2023, 3:57 PMsome-airplane-33254
06/01/2023, 6:56 PMlittle-cartoon-10569
06/01/2023, 8:34 PMsome-airplane-33254
06/01/2023, 10:08 PMsome-airplane-33254
06/01/2023, 10:11 PMTSError: ⨯ Unable to compile TypeScript:
index.ts(33,66): error TS2345: Argument of type '{ vpc: awsx.ec2.Vpc; }' is not assignable to parameter of type 'ApplicationLoadBalancerArgs'.
Object literal may only specify known properties, and 'vpc' does not exist in type 'ApplicationLoadBalancerArgs'.
little-cartoon-10569
06/01/2023, 10:25 PMlittle-cartoon-10569
06/01/2023, 10:25 PMsome-airplane-33254
06/01/2023, 10:34 PMconst alb = new <http://awsx.lb|awsx.lb>.ApplicationLoadBalancer("web-traffic", vpc, {});
Passing vpc as an arg rather than in the options. That is not what the doc shows.
It seems this isn't the only doc discrepancy as later the guide proposes:
const listener = alb.createListener("web-listener", { port: 80 });
But that method doesn't exist.miniature-musician-31262
06/02/2023, 12:51 AMawsx
, which recently went 1.0 (and unfortunately changed a few APIs). Those APIs are still there, but they're available under the classic
namespace -- so when you run into this, you can generally switch your references from awsx.module.ResourceName
to awsx.classic.module.ResourceName
to use them, if that helps. Meantime though, I'll see if I can find something that does all this with the 1.0 SDK. (And file to get that doc updated!)some-airplane-33254
06/02/2023, 12:59 AMconst alb = new <http://awsx.lb|awsx.lb>.ApplicationLoadBalancer(rname("web-traffic"), {
subnetIds: vpc.publicSubnetIds,
});
miniature-musician-31262
06/02/2023, 1:14 AMDOCKER
env var (without that, the images I build locally don't run when they make it to AWS), and you'll probably want to adjust the subnet group (as it allows everything right now), but hopefully this'll help ya.miniature-musician-31262
06/02/2023, 1:14 AMsome-airplane-33254
06/02/2023, 1:33 AM