After creating a ne...
 
Notifications
Clear all

After creating a new workspace "PROD" you need to run the command terraform select PROD to switch to it.

1 Posts
1 Users
0 Likes
173 Views
(@leneaveorval)
Noble Member
Joined: 2 years ago
Posts: 705
Topic starter  

After creating a new workspace "PROD" you need to run the command terraform select PROD to switch to it.

  • A . False
  • B . True

Show Answer Hide Answer

Suggested Answer: A

Explanation:

By default, when you create a new workspace you are automatically switched to it To create a new workspace and switch to it, you can use terraform workspace new <new_workspace_name>; to switch to a existing workspace you can use terraform workspace select <existing_workspace_name>; Example:

$ terraform workspace new example

Created and switched to workspace "example"!

You're now on a new, empty workspace. Workspaces isolate their state, so if you run "terraform plan" Terraform will not see any existing state for this configuration.

   
Quote

Latest HashiCorp TA-002-P Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: