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

[BUG] Terraform 1.10-rc2 and ephemeral vars #1968

Open
antonbabenko opened this issue Nov 24, 2024 · 1 comment
Open

[BUG] Terraform 1.10-rc2 and ephemeral vars #1968

antonbabenko opened this issue Nov 24, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@antonbabenko
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:

  1. Using output sharing between stacks and Terraform before 1.10 as normal:
input "access_logs_bucket_domain_name" {
  backend       = global.stack
  from_stack_id = global.stack_ids["aws-access-logs-bucket"]
  value         = outputs.access_logs_bucket_domain_name.value
  mock          = "some"
}
  1. Run terramate apply fails due to a new feature ephemeral vars:
╷
│ Error: Can't change variable when applying a saved plan
│ 
│ The variable access_logs_bucket_domain_name cannot be set using the -var and -var-file options when applying a saved plan file, because a
│ saved plan includes the variable values that were set when it was created. The saved plan specifies
│ "\"dev-123logs.s3.amazonaws.com\"" as the value whereas during apply the value "dev-123logs.s3.amazonaws.com" was set by
│ an environment variable. To declare an ephemeral variable which is not saved in the plan file, use ephemeral = true.
╵

Environment (please complete the following information):

  • Terramate Version: 0.11.2
  • Terraform Version: Terraform v1.10.0-rc2 on darwin_arm64
@antonbabenko antonbabenko added the bug Something isn't working label Nov 24, 2024
@soerenmartius
Copy link
Contributor

Thanks for reporting this @antonbabenko, we'll look into this shortly to make sure that we add support for ephemeral vars asap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants