Workspace "stack-name" already exists
- Dominant language
- Go
- Stars
- 1.4k
- Forks
- 175
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 134
Description
### Describe the Bug
If I run atmos terraform command failed with the below error after first run.
```
Workspace "stack-name" already exists
exit status 1
```
### Expected Behavior
Expecting terraform command to completed without the workspace error
### Steps to Reproduce
This can be re-produce with atmos tutorial: https://github.com/cloudposse/tutorials/tree/main/02-atmos
First run should be good with the below command
```
atmos terraform plan fetch-location -s example
```
Second run it would throw the error:
```
Workspace "example" already exists
exit status 1
```
Note: it would work if I go back to version [v1.38.0] https://github.com/cloudposse/atmos/releases/tag/v1.38.0)
### Screenshots
_No response_
### Environment
- OS: Windows 10
- version: v1.45.3
- terraform version: v1.6.0/v1.5.0/v1.0.0
### Additional Context
_No response_
Contributor guide
Research direction
Reproduce the issue with the Atmos tutorial using `atmos terraform plan fetch-location -s example`, running it twice on Windows 10 with the reported versions. Compare the behavior with v1.38.0 and verify that repeated runs complete without the existing-workspace error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, terraform
- Domain
- cli, infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100