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

Module doesn't work with planfile-workflow #14

Open
david-jointech opened this issue Jan 17, 2024 · 0 comments
Open

Module doesn't work with planfile-workflow #14

david-jointech opened this issue Jan 17, 2024 · 0 comments

Comments

@david-jointech
Copy link

david-jointech commented Jan 17, 2024

Terraform Version

1.6.6

Affected Resource(s)

  • data.ssh_tunnel

Expected Behavior

When using this provider, I'd expect the ssh-tunnel to be opened during the plan and the apply-step, when using those separately.

Actual Behavior

The tunnel opens on terraform plan -out planfile but doesn't open again during terraform apply planfile

Steps to Reproduce

  1. Configure the plugin to your needs
  2. Run terraform plan -out planfile
  3. Run terraform apply planfile

Important Factoids

This issue is actually with the general design of terraform and probably can't be solved in a provider. The problem is, that terraform only refreshes data-resources in the plan-step and then uses the values from there during apply. This is in line of how I'd expect data-resources to work in general. The whole reason for the separate plan/apply-steps is that apply should produce the result laid out in the planfile.

It would be nice to add a warning in the README and documentation of this provider though, since it's a bit of an annoying error to analyze and this way it'd be clear to users right away.

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