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
If the resource(Lets call it foo) is deployed with the help of data source, If the resource(bar) which is referred by data source is already destroyed by manually or by accident, terraform destroy fails while destroying the resource(foo)
Terraform Version - v0.11.6
For example -
data "aws_security_group" "selected" {
id = "SG-ID"
}
output "group_name" {
value = "${aws_security_group.name}"
}
If we try to destory above resource when resource which id (SG-ID) we provided is no more available, Terraform will fail to destroy the resource
Expected Behavior
It should destroy the resources regardless of resources availbility which are refered by data source.
Actual Behavior
It fails to destroy resources
Steps to Reproduce
Use data source resource while creating the resource (Terraform deploy)
Destroy the resource which data source is referring to (manual step)
Try to Destroy the resource (Terraform destroy)
The text was updated successfully, but these errors were encountered:
This issue was originally opened by @rahulpatil18 as hashicorp/terraform#18385. It was migrated here as a result of the provider split. The original body of the issue is below.
Problem Statement-
If the resource(Lets call it foo) is deployed with the help of data source, If the resource(bar) which is referred by data source is already destroyed by manually or by accident, terraform destroy fails while destroying the resource(foo)
Terraform Version - v0.11.6
For example -
data "aws_security_group" "selected" {
id = "SG-ID"
}
output "group_name" {
value = "${aws_security_group.name}"
}
If we try to destory above resource when resource which id (SG-ID) we provided is no more available, Terraform will fail to destroy the resource
Expected Behavior
It should destroy the resources regardless of resources availbility which are refered by data source.
Actual Behavior
It fails to destroy resources
Steps to Reproduce
The text was updated successfully, but these errors were encountered: