aws cli returns "is not a valid target group ARN" for load balancer
Quote from moshe on 19/11/2021, 3:55 pmProblem
User tries to modify Load balancer target groups with the following command
aws elbv2 modify-target-group –target-group-arn arn:aws:elasticloadbalancing:eu-west-1:52********:targetgroup/my-ecs-service/abf0******* –health-check-protocol HTTP –health-check-port 5555
And gets the following error
An error occurred (ValidationError) when calling the ModifyTargetGroup operation: ‘arn:aws:elasticloadbalancing:eu-west-1:52*********:targetgroup/my-ecs-service/abf0*******’ is not a valid target group ARN
Solution
Check your aws cli credentials and makes sure you configured the region where your load balancer installed
Problem
User tries to modify Load balancer target groups with the following command
aws elbv2 modify-target-group –target-group-arn arn:aws:elasticloadbalancing:eu-west-1:52********:targetgroup/my-ecs-service/abf0******* –health-check-protocol HTTP –health-check-port 5555
And gets the following error
An error occurred (ValidationError) when calling the ModifyTargetGroup operation: ‘arn:aws:elasticloadbalancing:eu-west-1:52*********:targetgroup/my-ecs-service/abf0*******’ is not a valid target group ARN
Solution
Check your aws cli credentials and makes sure you configured the region where your load balancer installed