add to provider access environments OR run in terminal
export AWS_ACCESS_KEY_ID=YOUR_KEY
export AWS_SECRET_ACCESS_KEY=YOUR_SECRET_KEY
export AWS_DEFAULT_REGION=YOUR_REGION
search from .tf files provider and upload all instances
terraform init
terraform workspace list
terraform workspace new {NAME}
terraform workspace list
terraform workspace select {NAME}
terraform plan
terraform apply
destroy all instances from .tf file
terraform workspace select ENV
terraform destroy
terraform workspace select default // or any other env
terraform workspace delete ENV
tfswitch 0.13.5
for testing yours function
terraform console