sparse-intern-71089
03/23/2021, 5:41 PMbillowy-army-68599
gorgeous-monitor-13375
03/23/2021, 7:44 PMconst loadBalancerListener = new awsx.lb.ApplicationListener(`lb`,
{
port: 8080,
protocol: "HTTPS",
vpc: vpcConfig.vpc,
certificateArn: config.require("sslCertificateArn"),
});
const cluster = new awsx.ecs.Cluster("cluster", {
vpc: vpcConfig.vpc,
name: `cluster`,
securityGroups: [ securityGroup ]
});
const service = new awsx.ecs.FargateService("hasura-service", {
cluster,
name: `service`,
taskDefinitionArgs: {
containers: {
hasura: {
image: "hasura/graphql-engine:v2.0.0-alpha.5",
memory: 128,
portMappings: [loadBalancerListener],
},
},
},
desiredCount: 1,
});
I thought maybe I could pass in some different defaults into the targetGroup
attribute of the listener:
const loadBalancerListener = new awsx.lb.ApplicationListener(`lb`,
{
port: 8080,
protocol: "HTTPS",
vpc: vpcConfig.vpc,
certificateArn: config.require("sslCertificateArn"),
targetGroup: {
healthCheck: ...
}
);
But I get an error for missing required attributes, even though they are all optional on the interface itself. It makes it seem like I have to fully define the target group manually, in which case I might as well not use crosswalk, so I feel like I'm missing something.No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by