Skip to content
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

Getting working workspace from Terraform Cloud configuration #2432

Merged
merged 1 commit into from
Sep 30, 2022

Conversation

cucxabong
Copy link
Contributor

This MR fix #2171

@cucxabong cucxabong requested a review from a team as a code owner August 6, 2022 10:27
@cucxabong cucxabong changed the title Determine Terraform Cloud workspace from configuration Getting working workspace from Terraform Cloud configuration Aug 6, 2022
@cucxabong cucxabong force-pushed the fix-issue-2171 branch 4 times, most recently from f49c823 to 52d279f Compare August 6, 2022 11:01
@jamengual jamengual added waiting-on-review Waiting for a review from a maintainer bug Something isn't working labels Aug 8, 2022
Copy link
Contributor

@lilincmu lilincmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me! Thanks for your contribution 🎉

I'd like to point out two minor things, to bring people's attention.

  1. In the original issue, Atlantis does not detect terraform cloud workspace from cloud config #2171, the author expects the workspace name can be auto detected with atlantis plan -d .. However, I think this change will not make it work, since this change only modifies the buildPlanAllCommands code path but not buildProjectPlanCommand. I agree with the approach of this PR though, since atlantis plan is equivalent to atlantis plan -d . so at least people have a way to connect to terraform cloud without atlantis.yaml now. For more complex use cases, atlantis.yaml should probably be defined.
  2. The older configs to connect to terraform cloud with backend "remote" block, which is replaced by the cloud block, will still not be supported.

@lilincmu lilincmu removed the waiting-on-review Waiting for a review from a maintainer label Sep 30, 2022
@lilincmu lilincmu merged commit 8b20beb into runatlantis:master Sep 30, 2022
krrrr38 pushed a commit to krrrr38/atlantis that referenced this pull request Dec 16, 2022
@nitrocode nitrocode added this to the v0.19.9 milestone Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Atlantis does not detect terraform cloud workspace from cloud config
4 participants