Forum Navigation
You need to log in to create posts and topics.

aws cli returns "is not a valid target group ARN" for load balancer

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