Skip to content

Instantly share code, notes, and snippets.

@philippelatulippe
Created September 22, 2016 10:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philippelatulippe/e3ca2594bb4e58d0fffd3f69b608710f to your computer and use it in GitHub Desktop.
Save philippelatulippe/e3ca2594bb4e58d0fffd3f69b608710f to your computer and use it in GitHub Desktop.
Terraform AWS: Unsupported service namespace, resource type or scalable dimension

If you try to attach an auto-scaling group to an ECS service and you get

Unsupported service namespace, resource type or scalable dimension

Then it's possible you didn't correctly format the resource_id in your aws_appautoscaling_target. It needs to be in the format service/clusterName/serviceName, and terraform will not format it for you. Try:

resource_id = "service/${aws_ecs_cluster.MY_CLUSTER.name}/${aws_ecs_service.MY_SERVICE.name}"
@ianaz
Copy link

ianaz commented Nov 11, 2016

Thanks

@rickythefox
Copy link

Thanks!!

@phuongdh
Copy link

Awesome! The docs was not clear here.

@nisalupendra
Copy link

amazing, saved my day

@MarcosVasconcellosJr
Copy link

Thank you, very....very....very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment