aztfmod / level0

Launchpads that can be used by the rover to deploy the Azure CAF Terraform landing zones
https://aka.ms/caf
MIT License
14 stars 21 forks source link

Cannot delete launchpad on another rover than the one who created it #17

Closed arnaudlh closed 4 years ago

arnaudlh commented 4 years ago

When trying to delete a launchpad, from another machine than the one which originally created the launchpad, using the following command: "launchpad /tf/launchpads/launchpad_opensource_light destroy -var 'location=koreacentral'"

gets the following error: "The command failed with an unexpected error. Here is the traceback:

[Errno 2] No such file or directory: '/home/vscode/.terraform.cache/tfstates/level0/launchpad_opensource_light.tfstate' Traceback (most recent call last): ... "

It is working correctly when manually downloading the tfstate and copying it manually in /home/vscode/.terraform.cache/tfstates/level0