When we add a security group manually, Terraform should ask to delete it when we recreate the plan
Actual Behavior
Actually, when we add a security group manually, Terraform do not see the change when we recreate the plan. But we can see the new SG on the state ...
Steps to Reproduce
terraform init -plugin-dir=/opt/terraform/plugins
terraform plan -out=main.tfplan
terraform apply "main.tfplan"
Add SG manually through Cockpit on the created VM
terraform plan -out=main.tfplan => Terraform do not see the new SG (it should ask to delete it because the SG is not on the configuration)
terraform show => Terraform see the new SG only on the state
Terraform Version
Terraform Configuration Files
Debug Output
Crash Output
Expected Behavior
When we add a security group manually, Terraform should ask to delete it when we recreate the plan
Actual Behavior
Actually, when we add a security group manually, Terraform do not see the change when we recreate the plan. But we can see the new SG on the state ...
Steps to Reproduce
terraform init -plugin-dir=/opt/terraform/plugins terraform plan -out=main.tfplan terraform apply "main.tfplan" Add SG manually through Cockpit on the created VM terraform plan -out=main.tfplan => Terraform do not see the new SG (it should ask to delete it because the SG is not on the configuration) terraform show => Terraform see the new SG only on the state
Additional Context
References