Skip to content

Commit

Permalink
fix: resolving an error in the inheritance behaviour of notification_…
Browse files Browse the repository at this point in the history
…configuration and team_access
  • Loading branch information
marwinbaumannsbp committed Aug 8, 2024
1 parent 0a3c70b commit e9ed805
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ module "additional_tfe_workspaces" {
file_triggers_enabled = each.value.connect_vcs_repo != false ? each.value.file_triggers_enabled : null
global_remote_state = each.value.global_remote_state
name = coalesce(each.value.name, each.key)
notification_configuration = each.value.notification_configuration != {} ? each.value.notification_configuration : var.tfe_workspace.notification_configuration
notification_configuration = each.value.notification_configuration != null ? each.value.notification_configuration : var.tfe_workspace.notification_configuration
oauth_token_id = each.value.connect_vcs_repo != false ? coalesce(each.value.vcs_oauth_token_id, var.tfe_workspace.vcs_oauth_token_id) : null
oidc_settings = coalesce(each.value.auth_method, var.tfe_workspace.auth_method) == "iam_role_oidc" ? { provider_arn = aws_iam_openid_connect_provider.tfc_provider[0].arn } : null
path = var.path
Expand All @@ -256,7 +256,7 @@ module "additional_tfe_workspaces" {
sensitive_hcl_variables = each.value.sensitive_hcl_variables
sensitive_terraform_variables = each.value.sensitive_terraform_variables
ssh_key_id = each.value.ssh_key_id != null ? each.value.ssh_key_id : var.tfe_workspace.ssh_key_id
team_access = each.value.team_access != {} ? each.value.team_access : var.tfe_workspace.team_access
team_access = each.value.team_access != null ? each.value.team_access : var.tfe_workspace.team_access
terraform_organization = var.tfe_workspace.organization
terraform_version = each.value.terraform_version != null ? each.value.terraform_version : var.tfe_workspace.terraform_version
trigger_patterns = each.value.trigger_patterns != null ? each.value.trigger_patterns : var.tfe_workspace.trigger_patterns
Expand Down
4 changes: 2 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ variable "additional_tfe_workspaces" {
"run:completed",
"run:errored",
])
})), {})
})), null)

team_access = optional(map(object({
access = optional(string, null),
Expand All @@ -106,7 +106,7 @@ variable "additional_tfe_workspaces" {
variables = string
workspace_locking = bool
}), null)
})), {})
})), null)
}))
default = {}
description = "Additional TFE workspaces"
Expand Down

0 comments on commit e9ed805

Please sign in to comment.