Loading...
Loading...
### Terraform Version ```shell Terraform v1.8.5 on darwin_arm64 + provider registry.terraform.io/hashicorp/azurerm v3.107.0 ``` ### Terraform Configuration Files ``` **In data/outputs.tf:** output "platform_log_analytics_workspace" { value = { id = azurerm_log_analytics_workspace.platform-la.id } } **In connect/main.tf** data "terraform_remote_state" "data" { backend = "azurerm" config = { subscription_id = "modified" resource_group_name = "modified" storage_account_name = "modified" container_name = "data" key = "modified" } } **Passed as argument to module:** workspace_id = data.terraform_remote_state.data.outputs.connect_log_analytics_workspace.id ``` ### Debug Output │ Error: Unsupported attribute │ │ on main.tf line 232, in module "app-service-windows": │ 232: workspace_id = data.terraform_remote_state.data.outputs.connect_log_analytics_workspace.id │ ├──────────────── │ │ data.terraform_remote_state.data.outputs is object with 6 attributes │ │ This object does not have an attribute named "connect_log_analytics_workspace". ### Expected Behavior On terraform destroy, the output from remote state should be retrieved and destroy should complete ### Actual Behavior Terraform apply works fine and can retrieve the value of output, but destroy gives an error and does not see this attribute in outputs of remote state ### Steps to Reproduce terraform apply -var environment=preprod terraform destroy ### Additional Context Terraform configuration does not see an attribute from outputs of different Terraform configuration, while the attribute is there (checked the .tfstate manually) and formatted properly. Terraform apply works fine, and fails only on terraform destroy ### References _No response_
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.