Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ If you have many remote repositories that you need to manage via this pattern, y
| <a name="input_before_init"></a> [before\_init](#input\_before\_init) | List of before-init scripts | `list(string)` | `[]` | no |
| <a name="input_before_perform"></a> [before\_perform](#input\_before\_perform) | List of before-perform scripts | `list(string)` | `[]` | no |
| <a name="input_before_plan"></a> [before\_plan](#input\_before\_plan) | List of before-plan scripts | `list(string)` | `[]` | no |
| <a name="input_bitbucket_cloud"></a> [bitbucket\_cloud](#input\_bitbucket\_cloud) | The Bitbucket Cloud integration settings | <pre>object({<br/> namespace = string<br/> id = optional(string)<br/> })</pre> | `null` | no |
| <a name="input_branch"></a> [branch](#input\_branch) | Specify which branch to use within the infrastructure repository. | `string` | `"main"` | no |
| <a name="input_common_config_file"></a> [common\_config\_file](#input\_common\_config\_file) | Name of the common configuration file for the stack across a root module. | `string` | `"common.yaml"` | no |
| <a name="input_default_tf_workspace_enabled"></a> [default\_tf\_workspace\_enabled](#input\_default\_tf\_workspace\_enabled) | Enables the use of `default` Terraform workspace instead of managing multiple workspaces within a root module.<br/><br/>NOTE: We encourage the use of Terraform workspaces to manage multiple environments.<br/>However, you will want to disable this behavior if you're utilizing different backends for each instance<br/>of your root modules (we call this "Dynamic Backends"). | `bool` | `false` | no |
Expand Down
8 changes: 8 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,14 @@ resource "spacelift_stack" "default" {
}
}

dynamic "bitbucket_cloud" {
for_each = var.bitbucket_cloud != null ? [var.bitbucket_cloud] : []
content {
namespace = bitbucket_cloud.value["namespace"]
id = try(bitbucket_cloud.value["id"], null)
}
}

dynamic "azure_devops" {
for_each = var.azure_devops != null ? [var.azure_devops] : []
content {
Expand Down
10 changes: 9 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ variable "github_enterprise" {
default = null
}

variable "bitbucket_cloud" {
type = object({
namespace = string
id = optional(string)
})
description = "The Bitbucket Cloud integration settings"
default = null
}

variable "azure_devops" {
type = object({
project = string
Expand All @@ -54,7 +63,6 @@ variable "raw_git" {
default = null
}


variable "repository" {
type = string
description = "The name of your infrastructure repo"
Expand Down