qsecure-labs / overlord

Overlord - Red Teaming Infrastructure Automation
https://blog.qsecure.com.cy/posts/overlord/
MIT License
608 stars 74 forks source link

External references from destroy provisioners are deprecated #5

Closed m4rvxpn closed 4 years ago

m4rvxpn commented 4 years ago

Describe the bug The script throws the following error during deployment.

External references from destroy provisioners are deprecated

on ../../redbaron/modules/aws/dns-c2/main.tf line 84, in resource "null_resource" "gen_ssh_config": 84: command = "rm sshconfigs/config${random_id.server[count.index].hex}"

Destroy-time provisioners and their connection configurations may only
reference attributes of the related resource, via 'self', 'count.index', or 'each.key'.

References to other resources during the destroy phase can cause dependency
cycles and interact poorly with create_before_destroy.

Screenshots image

Desktop:

V4K11 commented 4 years ago

Hello, this is a warning which appeared after we upgraded from Terraform 0.11 to 0.12. It does not cause any problems in the deploying or destroying phase and cannot be fixed due to Terraform 0.12 limitations.