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

Automatically Create Terraform Cloud Workspace #670

Closed
skorfmann opened this issue May 2, 2021 · 5 comments
Closed

Automatically Create Terraform Cloud Workspace #670

skorfmann opened this issue May 2, 2021 · 5 comments
Assignees
Labels
enhancement New feature or request priority/important-soon High priority, to be worked on as part of our current release or the following one. size/medium estimated < 1 week terraform cloud ux/cli ux/integration
Milestone

Comments

@skorfmann
Copy link
Contributor

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

References

When using multiple stacks, it'd be pretty neat if the CLI would offer to create a configured workspace if it doesn't exist.

Right now we see the following error:

⠙ synthesizing server...
TerraformCloud returned an HTTP 404 error. Please make sure the configured organization (some-tf-cloud-user) and workspace (foo-bar-stack) exist and you have the correct access rights.
@skorfmann skorfmann added enhancement New feature or request terraform cloud labels May 2, 2021
@ansgarm
Copy link
Member

ansgarm commented May 3, 2021

Related to this / might be addressed with this:
When initializing a new project from a template that supports multiple stacks, only a single Terraform Cloud Workspace is created. In the case of my multi stack remote template the name of the project can also differ from the name of the stacks, so the TFC Workspace that gets created in init might not even match the ones defined in the template.

@skorfmann
Copy link
Contributor Author

Yes - I think this should be moved to the synth stage. Essentially collect all backend configs and check for the existence. I'm tempted to try to building this on top of #682

@DanielMSchmidt DanielMSchmidt added priority/important-soon High priority, to be worked on as part of our current release or the following one. size/medium estimated < 1 week ux/cli ux/integration labels Dec 1, 2021
@matschaffer
Copy link

This is somewhat offtopic, but is there a doc for using cdktf on terraform cloud? I was unable to locate it so came here looking for a "terraform cloud support" issue to upvote. Thanks in advance!

@ansgarm
Copy link
Member

ansgarm commented Feb 8, 2022

@matschaffer: There are notes on that (somewhat hidden) in the Project Setup Docs.

@github-actions
Copy link
Contributor

I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request priority/important-soon High priority, to be worked on as part of our current release or the following one. size/medium estimated < 1 week terraform cloud ux/cli ux/integration
Projects
None yet
Development

No branches or pull requests

7 participants