-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Task definitions continuously beening updated #2417
Comments
@kazeshini178 This usually happens when your rendered policy does not exactly equal the document saved in AWS. Retrieve it from AWS using CLI and compare with your rendered version. AWS often accept different syntax etc for legacy reasons but then modify it according to the new format which results in always pending change during plan. |
Exactly my thoughts. Elasticsearch has the same issue. Checkout the solution I used for it here |
@Puneeth-n I have tried matching aws output like the suggested solution, but with each apply that I run the task definitions environment variables just keep swapping their order causing a pending change. @jurajseffer checked the AWS CLI output which seems to match my task definition JSON file. Might be missing something. |
@kazeshini178 can you share your task definition? I will try to fix it. I might know where the problem might be coming from. |
@Puneeth-n here we go,
|
@kazeshini178 Can you check with v1.3.1 #2339 |
@Puneeth-n Just updated to v1.4.0 like 5 minutes before the GitHub email :) This seems to have solved the issue after running Thanks for the assistance :) |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
The issue that im experiencing is that terraform (or the aws provider) keeps trying to update my aws_ecs_task_definitions though nothing has changed in them. This causes our ecs service to continuously be updated with the "new" definition.
Our task definitions are read in from a JSON file as such:
Only difference I have seen is the order of the environment variables and the inclusion of optional fields.
Terraform Version
Affected Resource(s)
Expected Behavior
As the definition hasn't changed I should see an output of
Plan: 0 to add, 0 to change, 0 to destroy
.This was the output I recieved with versions of Terraform 0.10.8 and 0.9.0
Actual Behavior
I get the following output
Plan: 2 to add, 2 to change, 2 to destroy
Steps to Reproduce
aws_ecs_service
aws_ecs_task_definition
linked toaws_ecs_service
terraform plan
terraform apply
terraform plan
References
None from what I could find
The text was updated successfully, but these errors were encountered: