Monday, May 9, 2022

Update terraform.tfstate in individual workspace

Select source workspace, we use default as example here:

terraform workspace select default

terraform state pull > terraform.tfstate

ls terraform.tfstate


Select the target workspace test

terraform workspace select test

terraform workspace list

terraform state push terraform.tfstate 

terraform state list |grep jolokia2

No comments:

Post a Comment