You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. Thanks for everyone's work on this Action. Opening a discussion, as I'm not sure whether the following is an actual issue. Or if you'd also think that the expected behavior, proposed below, would be desired. Or maybe there's already an input that would solve this "issue". A "solution" might be to use auto_approve: true, of course.
Current behavior
When using terraform-apply action with a PR workflow, the action fails if there are differences between the PR plan and the current plan, even for attributes that are explicitly set to be ignored via Terraform's ignore_changes lifecycle rule.
For example, with the following Terraform configuration:
If the desired_size changes between plans A) in the PR and B) at apply time (which is common with auto-scaling groups), the action fails with:
Not applying the plan - it has changed from the plan on the PR
The plan on the PR must be up to date. Alternatively, set the auto_approve input to 'true' to apply outdated plans
Performing diff between the pull request plan and the plan generated at execution time.
> are lines from the plan in the pull request
< are lines from the plan generated at execution
Plan differences:
...
< !~ desired_size = 6 -> 1
---
> !~ desired_size = 7 -> 1
Expected behavior?
The action should respect Terraform's ignore_changes settings when comparing plans. If the only differences between plans are attributes listed in ignore_changes, the action should proceed with the apply since Terraform itself would not act on these changes.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi. Thanks for everyone's work on this Action. Opening a discussion, as I'm not sure whether the following is an actual issue. Or if you'd also think that the expected behavior, proposed below, would be desired. Or maybe there's already an input that would solve this "issue". A "solution" might be to use
auto_approve: true
, of course.Current behavior
When using
terraform-apply
action with a PR workflow, the action fails if there are differences between the PR plan and the current plan, even for attributes that are explicitly set to be ignored via Terraform'signore_changes
lifecycle rule.For example, with the following Terraform configuration:
If the
desired_size
changes between plans A) in the PR and B) at apply time (which is common with auto-scaling groups), the action fails with:Expected behavior?
The action should respect Terraform's
ignore_changes
settings when comparing plans. If the only differences between plans are attributes listed inignore_changes
, the action should proceed with the apply since Terraform itself would not act on these changes.Beta Was this translation helpful? Give feedback.
All reactions