Skip to content

Teardown Hetzner infrastructure #12110

@cod3mas0n

Description

@cod3mas0n

What would you like to be added

Add the -chdir global flag for the configuration root directory to the teardown command and change the directory traverse for defaults.tfvars in contrib/terraform/hetzner/README.md

Teardown command change:

cd ./kubespray
terraform -chdir=./contrib/terraform/hetzner destroy --var-file=../../../inventory/$CLUSTER/default.tfvars 

Why is this needed

in the $CLUSTER directory got this Error

╷
│ Error: Failed to load "../../contrib/terraform/hetzner" as a plan file
│ 
│ The specified path is a directory, not a plan file. You can use the global -chdir flag to use this
│ directory as the configuration root.
╵

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions