Open pilchkinstein-perspectum opened 3 years ago
This is now reproducible behaviour. An ECS cluster with a default capacity provider cannot create a DAEMON task. The workaround is:-
I was able to get around this by setting launch_type = "EC2"
on the service. I got this tip from https://github.com/aws/containers-roadmap/issues/692
The strange thing is the AWS provider docs indicate EC2
is the default value for that argument, but it did not work until I explicitly set it on the service.
Edit: I see now, while my method successfully applied, the service was not deployed to the nodes in the default capacity provider. I had to change from using launch_type
to manually specifying the capacity_provider_strategy
, which results in the original error again.
Any news on this? I'd hate to see it suddenly be archived due to inaction
Contrary to @wendtek 's experience, I tried the launch_type = "EC2"
explicit setting, and it worked fine for me: DAEMON processes successfully running on every instance in the cluster, whether using the default capacity provider or not.
terraform 0.15.3 aws-provider 3.45.0
Contrary to @wendtek 's experience, I tried the
launch_type = "EC2"
explicit setting, and it worked fine for me: DAEMON processes successfully running on every instance in the cluster, whether using the default capacity provider or not.terraform 0.15.3 aws-provider 3.45.0
Worked for me, thanks
Contrary to @wendtek 's experience, I tried the
launch_type = "EC2"
explicit setting, and it worked fine for me: DAEMON processes successfully running on every instance in the cluster, whether using the default capacity provider or not.terraform 0.15.3 aws-provider 3.45.0
worked for me too, thanks @infracaninophile
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.
If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform v0.13.5
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
// service.json
Debug Output
bug-16772-debug.log
Panic Output
N/A
Expected Behavior
New DAEMON service should be created on each instance in the ECS cluster
Actual Behavior
No service is created. Terraform returns the following:-
Error: InvalidParameterException: Specifying a capacity provider strategy is not supported when you create a service using the DAEMON scheduling strategy. "cadvisor"
Steps to Reproduce
terraform apply -target=aws_launch_template.lc -target=aws_autoscaling_group.asg -target=aws_ecs_capacity_provider.ecs_capacity_provider
terraform apply -target=aws_ecs_cluster.cluster -target=aws_ecs_task_definition.task
terraform apply -target=aws_ecs_service.service
Important Factoids
None
References
0000