-
Notifications
You must be signed in to change notification settings - Fork 151
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
Labels
Comments
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? |
That would be great. I manage our organization at the workspace level so
not as worried about the project setting.
Jake
…On Tue, Jan 9, 2024 at 18:29 Paul Thrasher ***@***.***> wrote:
Hi! We're planning on adding this soon. It might look something like this:
resource "tfe_organization" "test-organization" {
name = "my-org-name"
email = ***@***.***"
}
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?
—
Reply to this email directly, view it on GitHub
<#1157 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACR4NF4V5PXLQGYHC5ABNLLYNXVI5AVCNFSM6AAAAAA756TZAKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBUGA2DSMRUGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Update: the dependency for this was merged last week hashicorp/go-tfe#902 |
This was also shipped last week. Duration setting will come next. #1354 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Terraform Cloud
Terraform version
Terraform Configuration Files
Debug Output
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
The text was updated successfully, but these errors were encountered: