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

Terraform always replaces ECS task definition #1

Closed
olivermeyer opened this issue Sep 26, 2022 · 2 comments
Closed

Terraform always replaces ECS task definition #1

olivermeyer opened this issue Sep 26, 2022 · 2 comments

Comments

@olivermeyer
Copy link

Terraform consistently wants to replace an ECS task definition, although no changes were made to the task definition. This pollutes our Terraform plans.

  # module.secoda.module.ecs.aws_ecs_task_definition.main must be replaced
-/+ resource "aws_ecs_task_definition" "main" {
      ~ arn                      = "[REDACTED]:task-definition/secoda:51" -> (known after apply)
      ~ container_definitions    = (sensitive) # forces replacement
      ~ id                       = "secoda" -> (known after apply)
      - ipc_mode                 = "" -> null
      - pid_mode                 = "" -> null
      ~ revision                 = 51 -> (known after apply)
      - tags                     = {} -> null
      ~ tags_all                 = {} -> (known after apply)
        # (8 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

There is a known issue affecting ECS task definitions with mount points, which could be the cause. There are also a handful of workarounds in the same GitHub issue but I haven't had time to test any of them.

Steps to reproduce:

  • terraform plan in any workspace containing a Secoda installation
@LikeCarter
Copy link
Contributor

Thanks @olivermeyer - I've put out a fix now.

@olivermeyer
Copy link
Author

That worked, thanks for the quick fix @LikeCarter!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants