-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Workspace is not selected during init #661
Comments
Hmm, looks like a bug with tf. Can you figure out a way for Atlantis to run this in automation? Will we have to detect the input? You can probably fix for now with a custom workflow |
there's a few tickets about this actually so it's not Atlantis related: hashicorp/terraform#21393 I was able to workaround it using a custom workflow
|
Looks like it wasn't backported to 0.11 so users will have to either use your workaround or upgrade to 0.12. Thanks for doing the research! |
I'm running into this even on 0.12. Does Atlantis set |
Are you using custom workflows? The default plan step handles changing workspaces and creating one if it doesn't exist but if you're using custom workflows you need to write that yourself. |
No. But I solved this by creating one that looks like:
I added extra args after I realized I needed a custom workflow anyways. Should this be necessary? |
What does your full atlantis.yaml look like? I re-read your original comment and you said that you have the workspace name set and it's not using it? |
I'm currently running into this issue:
Additional info:
I am not using custom workflows. Any help debugging it would be appreciated. |
You need to add the workspace as env before init and apply:
|
@andyshinn I'd rather not customize the workflows just for the workspace to be set correctly. I'll open a PR to correctly set the |
When running
atlantis plan -w dev -d terraform/environments/gcp/datascience/skepsi
, Atlantis will fail as it cannot select a default workspace.The output:
The same happens output occurs on my workstation but I am able to get past it by selecting 1 or 2 as my default workspace.
atlantis.yaml
The text was updated successfully, but these errors were encountered: