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
I thought that in the course of following PR #33618 it is possible to use the following notation in the import block:
this is in my main.tf
import {
to = module.ec-deployment.ec_deployment.main
id = var.ec_deployment_id
}
Additionally, this is my variables.tf
variable "ec_deployment_id" {
type = string
description = "The unique ID of the elastic cloud deployment."
default = "aaabbbcccdddeeefff"
}
Actual Behavior
When I declare the above import block I get the following error message:
╷
│ Error: Reference to undeclared input variable
│
│ on main.tf line 63, in import:
│ 63: id = var.ec_deployment_id
│
│ An input variable with the name "ec_deployment_id" has not been declared. This variable can be declared with a variable "ec_deployment_id" {} block.
╵
╷
│ Error: Invalid import id argument
│
│ on main.tf line 63, in import:
│ 63: id = var.ec_deployment_id
│
│ The import block "id" argument depends on resource attributes that cannot be determined until apply, so Terraform cannot plan to import this resource.
╵
Steps to Reproduce
terraform init
terraform plan -target module.ec-deployment
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Terraform Version
Terraform Configuration Files
Debug Output
https://gist.github.com/ezienecker/dfd8a1556bde535f61302308a15af25f
Expected Behavior
I thought that in the course of following PR #33618 it is possible to use the following notation in the import block:
this is in my main.tf
Additionally, this is my variables.tf
Actual Behavior
When I declare the above import block I get the following error message:
Steps to Reproduce
terraform init
terraform plan -target module.ec-deployment
Additional Context
No, nothing special
References
The text was updated successfully, but these errors were encountered: