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

tfe_workspace resource does not support auto-destroy features #1157

Open
jakebracey opened this issue Nov 28, 2023 · 2 comments
Open

tfe_workspace resource does not support auto-destroy features #1157

jakebracey opened this issue Nov 28, 2023 · 2 comments

Comments

@jakebracey
Copy link

Terraform Cloud

Terraform version

v1.5.7

Terraform Configuration Files

resource "tfe_workspace" "test" {
  name         = "my-workspace-name"
  organization = "my-organization-name"
}

Debug Output

N/A

Expected Behavior

We manage terraform cloud workspaces completely with this provider. We would like to manage the auto-destroy features.

Actual Behavior

When managing the tfe_workspace resource, we are unable to set auto-destroy setting to enable destroy at a specific time or if inactive after a set period of time.

Additional Context

@jakebracey jakebracey added the bug label Nov 28, 2023
@thrashr888
Copy link
Member

Hi! We're planning on adding this soon. It might look something like this:

resource "tfe_organization" "test-organization" {
  name  = "my-org-name"
  email = "admin@company.com"
}

resource "tfe_workspace" "test" {
  name                           = "my-workspace-name"
  organization                   = tfe_organization.test-organization.name
  auto-destroy-activity-duration = "18h"
}

And it might be easier to set it at the project level instead, like so:

resource "tfe_project" "test" {
  organization = tfe_organization.test-organization.name
  name = "projectname"
  auto-destroy-activity-duration = "18h"
}

Would that work for you?

@jakebracey
Copy link
Author

jakebracey commented Jan 10, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants