From b01e0dea061e09b0b39ac400e8762f3639a4c85b Mon Sep 17 00:00:00 2001 From: Shane Gill Date: Tue, 24 Oct 2023 14:49:21 +1000 Subject: [PATCH] Save changes --- terraform/19b-projectspace/project.tf | 6 +++--- terraform/19b-projectspace/provider_vars.tf | 2 +- terraform/19b-projectspace/space.tf | 9 ++++++--- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/terraform/19b-projectspace/project.tf b/terraform/19b-projectspace/project.tf index 69746f309..f8104c064 100644 --- a/terraform/19b-projectspace/project.tf +++ b/terraform/19b-projectspace/project.tf @@ -10,16 +10,16 @@ resource "octopusdeploy_project" "deploy_frontend_project" { auto_create_release = false default_guided_failure_mode = "EnvironmentDefault" default_to_skip_if_already_installed = false - description = "Test project" + description = "Test project in space" discrete_channel_release = false is_disabled = false is_discrete_channel_release = false is_version_controlled = false lifecycle_id = data.octopusdeploy_lifecycles.lifecycle_default_lifecycle.lifecycles[0].id - name = "Test" + name = "Test project in space" project_group_id = octopusdeploy_project_group.project_group_test.id tenanted_deployment_participation = "Untenanted" - space_id = var.octopus_space_id + space_id = octopusdeploy_space.octopus_project_space_test.id included_library_variable_sets = [] versioning_strategy { template = "#{Octopus.Version.LastMajor}.#{Octopus.Version.LastMinor}.#{Octopus.Version.LastPatch}.#{Octopus.Version.NextRevision}" diff --git a/terraform/19b-projectspace/provider_vars.tf b/terraform/19b-projectspace/provider_vars.tf index c7d93fe40..131809ffb 100644 --- a/terraform/19b-projectspace/provider_vars.tf +++ b/terraform/19b-projectspace/provider_vars.tf @@ -14,5 +14,5 @@ variable "octopus_space_id" { type = string nullable = false sensitive = false - description = "The space ID to populate" + description = "The space ID of the provider" } diff --git a/terraform/19b-projectspace/space.tf b/terraform/19b-projectspace/space.tf index 34bc39e1e..12ec6fcb1 100644 --- a/terraform/19b-projectspace/space.tf +++ b/terraform/19b-projectspace/space.tf @@ -1,4 +1,7 @@ -resource "octopusdeploy_space" "project_space" { - name = "Project space" - description = "Test Description" +resource "octopusdeploy_space" "octopus_project_space_test" { + name = "Project Space Test" + is_default = false + is_task_queue_stopped = false + description = "My test space" + space_managers_teams = ["teams-administrators"] }