sparse-intern-71089
08/09/2020, 3:05 AMmillions-microphone-64941
08/09/2020, 3:10 AMfamous-garage-15683
08/09/2020, 3:43 AMmillions-microphone-64941
08/09/2020, 4:54 AMmillions-microphone-64941
08/09/2020, 4:56 AM<http://aws.lb|aws.lb>.Listener
with an ARN?millions-microphone-64941
08/09/2020, 5:39 AMfamous-garage-15683
08/09/2020, 10:42 PMmillions-microphone-64941
08/09/2020, 11:18 PMmillions-furniture-75402
10/02/2020, 2:17 PMconst alb = new awsx.lb.ApplicationLoadBalancer(`${appName}-lb`, {
loadBalancer: aws.lb.LoadBalancer.get(`${appName}-lb`, defaultAlbId, {
vpcId: vpc.vpc.id
}),
external: true,
securityGroups: [defaultAlbSecurityGroupId],
subnets: vpc.vpc.publicSubnetIds,
vpc: vpc.vpc,
});
const appTargetGroup = new awsx.lb.ApplicationTargetGroup(`${appName}-tg`, {
deregistrationDelay: 0,
healthCheck: {
path: '/api/health',
port: '443',
protocol: 'HTTP',
matcher: '200',
},
loadBalancer: alb,
port: 443,
protocol: 'HTTP',
vpc: vpc.vpc,
});
const https = new awsx.lb.ApplicationListener(`${appName}-https`, {
listener: aws.lb.Listener.get(`${appName}-https`, defaultListenerHttpsId),
loadBalancer: alb,
targetGroup: appTargetGroup,
vpc: vpc.vpc,
})
const appListenerRule = new awsx.lb.ListenerRule(`${appName}-lr`, https, {
actions: [
{
targetGroupArn: appTargetGroup.targetGroup.arn.apply(v => v),
type: 'forward',
},
],
conditions: [
{
hostHeader: {
values: [`${appName}.*`],
},
},
],
priority: 10,
});
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