Loading...
Loading...
When creating a terraform workspace using the CLI, and providing an existing state file with the `-state=` argument, a misleading success message states that a subsequent terraform plan will operate on an empty state. The success message when creating a workspace and populating with an existing state should reflect the plans execution against that state. ### Terraform Version ``` Terraform v0.14.5 ``` ### Terraform Configuration Files ```terraform # this is a CLI issue, not a config issue ``` ### Debug Output ### Crash Output ### Expected Behavior A message stating the workspace has been created with the provided state ### Actual Behavior ``` Created and switched to workspace "xxx"! 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. ``` ### Steps to Reproduce 1. `terraform workspace new -state= newname` ### Additional Context ### References
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.