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
Terraform v1.9.2
on darwin_arm64
+ provider registry.terraform.io/mongodb/mongodbatlas v1.17.0
Terraform Configuration Files
data"mongodbatlas_advanced_cluster""replicasetMultiCloud" {
project_id=mongodbatlas_advanced_cluster.replicasetMultiCloud.project_idname=mongodbatlas_advanced_cluster.replicasetMultiCloud.name
}
output"repSpecIDReplicaset" {
value=data.mongodbatlas_advanced_cluster.replicasetMultiCloud.replication_specs[0].id//This `id` attribute has been marked as deprecated in the schema
}
Terraform should show deprecation warnings for attributes in data sources that are marked as Deprecated in the schema if they are being referenced in Terraform configuration files similar to resource attribute deprecations.
Actual Behavior
No deprecation message is shown if outputting a deprecated attribute from the data source.
Steps to Reproduce
terraform init
terraform apply
Additional Context
We are working on deprecating some attributes for a resource & it's corresponding data source in our provider. The resource & data source are based in Plugin SDKv2.
During testing we noticed that any attribute marked as deprecated in the data source does not show a deprecation warning even if that attribute is being referenced in terraform config whereas deprecation in resource for all attributes works as expected and user can see a deprecation warning.
References
No response
The text was updated successfully, but these errors were encountered:
Thanks for filing the issue. The deprecation message for computed attributes currently only serves as documentation, so Terraform is working as designed in this instance. Terraform does not have the needed metadata necessary to provide the warning when the resource value is being evaluated elsewhere in the configuration.
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/maastha/5af8c7b6b789489af75195b89f118532
Expected Behavior
Terraform should show deprecation warnings for attributes in data sources that are marked as Deprecated in the schema if they are being referenced in Terraform configuration files similar to resource attribute deprecations.
Actual Behavior
No deprecation message is shown if outputting a deprecated attribute from the data source.
Steps to Reproduce
terraform init
terraform apply
Additional Context
We are working on deprecating some attributes for a resource & it's corresponding data source in our provider. The resource & data source are based in Plugin SDKv2.
During testing we noticed that any attribute marked as deprecated in the data source does not show a deprecation warning even if that attribute is being referenced in terraform config whereas deprecation in resource for all attributes works as expected and user can see a deprecation warning.
References
No response
The text was updated successfully, but these errors were encountered: