Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error applying plan: Unable to assume the service linked role. Please verify that the ECS service linked role exists. #4

Open
ewilde opened this issue Jul 8, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@ewilde
Copy link
Owner

ewilde commented Jul 8, 2018

Description

When running make on an entirely new installation you may get this error:

Error: Error applying plan:

2 error(s) occurred:

* module.ecs_provider.aws_ecs_service.main: 1 error(s) occurred:

* aws_ecs_service.main: InvalidParameterException: Unable to assume the service linked role. Please verify that the ECS service linked role exists.
	status code: 400, request id: d967b493-82f9-11e8-9d63-f5180ba0fbef "ecs-provider"
* module.nats.aws_ecs_service.main: 1 error(s) occurred:

* aws_ecs_service.main: InvalidParameterException: Unable to assume the service linked role. Please verify that the ECS service linked role exists.
	status code: 400, request id: dab962b7-82f9-11e8-8cc5-29d47e720a04 "nats"

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.

Cause

This looks like an eventual consistency error, the ecs service is not waiting for the newly created role to exist in the iam service, even though it is dependant on it.

@ewilde ewilde added the bug Something isn't working label Jul 8, 2018
@mandatoryprogrammer
Copy link

Not sure if it's helpful to your issue, but this is a bug in Terraform:
hashicorp/terraform-provider-aws#11417

Looks like a fix will get rolled out in version 2.44.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants