Marco Londero

Results 4 comments of Marco Londero

I have the exact same use-case/issue: ALB created via `kubernetes_ingress`/`kubernetes_ingress_v1` resource and need to get the `target_group_arn` (or `name`) to be able to use `TargetGroup` dimension in an `aws_cloudwatch_metric_alarm` resource.

@nicholastcs have you found any other way to achieve the following without actually using `aws` CLI? ```bash $ aws --region [REDACTED] elbv2 describe-rules --listener-arn arn:aws:elasticloadbalancing:[REDACTED]:[REDACTED]:listener/app/[REDACTED]/[REDACTED] --query 'Rules[0].Actions[0].TargetGroupArn' "arn:aws:elasticloadbalancing:[REDACTED]:[REDACTED]:targetgroup/[REDACTED]" ``` I...

Assuming you have your AWS region `local.aws_region` and ALB rules all using the same target group (`Rules[0].Actions[0].TargetGroupArn` - easily tuned to match what you need), the following does the trick:...

> @marcuz, it is all working and fine, but too much workaround for me. > > The best case is provider maintainer to implement them. Absolutely, I am looking forward...