sparse-intern-71089
02/02/2022, 8:51 PMlittle-cartoon-10569
02/02/2022, 9:38 PMmany-yak-61188
02/02/2022, 9:58 PMmany-yak-61188
02/03/2022, 4:36 AM// forward all analytics routes to the analytics target group
new aws.lb.ListenerRule('analytics', {
listenerArn: listener.listener.arn,
priority: 100,
actions: [{
type: 'forward',
targetGroupArn: analyticsTgx.targetGroup.arn,
}],
conditions: [
{
pathPattern: {
values: ['/analytics/*'],
},
},
],
});
I am far from an expert, shouldn't the crosswalk api support ListenerRule
. it is possible it does and I am asking the wrong question. The right question being is there a better way to do this?little-cartoon-10569
02/03/2022, 8:01 PMlittle-cartoon-10569
02/03/2022, 8:02 PMexport type ListenerRule = <http://aws.lb|aws.lb>.ListenerRule;
. It doesn't add anything of value to users.many-yak-61188
02/03/2022, 8:33 PMconst listener = lbx.createListener(`api-web-${stack}`, {
protocol: 'HTTPS',
targetGroup: apiTgx,
vpc: vpc,
certificateArn,
rules : {
actions: [{
type: 'forward',
}],
conditions: [{
pathPattern: {
values: ['/analytics/*'],
},
}],
},
});
might be completely off on this - i'm no expert on typescript either but the targetgroup and listener arn access just bothers melittle-cartoon-10569
02/03/2022, 9:33 PMlittle-cartoon-10569
02/03/2022, 9:36 PMlittle-cartoon-10569
02/03/2022, 9:38 PMmany-yak-61188
02/03/2022, 9:44 PMI don't understand. Are you having trouble passing a value to targetGroup?no trouble
Is it that you're looking for the nested-json approach to creating entities in awsx?yes. Looks cleaner to my eyes.
I generally recommend avoiding Crosswalk in any cases where you're likely to want to change the resources in the futureWe did everything with crosswalk - small team when we start (3 of us), best practices applies. Came a long way with it, but I do see your point. The flip side is the lift for learning AWS specific
Changes to the base resources managed by AWS native and classic providers are much more predictable than changes to the smart extensions provided by AWSX.👍 Thank you for your time. Appreciate it.
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