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 definition does not perfectly record reality #2543

Open
paul-butcher opened this issue Feb 5, 2024 · 2 comments
Open

Terraform definition does not perfectly record reality #2543

paul-butcher opened this issue Feb 5, 2024 · 2 comments

Comments

@paul-butcher
Copy link
Contributor

There is something awry in the terraform definition whereby either or both of these is true:

  1. It does not contain some default values
  2. It opaquely sets some values, regardless of the current value

As a result, terraform apply always has changes. Sometimes, there are changes to things like version numbers in AWS services that cause terraform to want to update certain configuration items, but this is not the case here.

To reproduce -

  1. cd to a terraform directory (e.g. pipeline/terraform/2024-02-01)
  2. terraform init
  3. terraform plan
    • If this is an existing pipeline, set according to the tf definitions, it should say there is nothing to do.
    • It actually says 5 to add, 57 to change, 5 to destroy.
  4. terraform apply (and yes to apply the change)
  5. terraform plan again
    • The response is once again 5 to add, 57 to change, 5 to destroy.
@paul-butcher
Copy link
Contributor Author

container_definitions in the scaling service forces replacement.

@paul-butcher
Copy link
Contributor Author

Slack

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

1 participant