Skip to content

Commit

Permalink
fix: bastion_compartment_id optional
Browse files Browse the repository at this point in the history
  • Loading branch information
andrecorreaneto committed Nov 29, 2023
1 parent 9aa9cdc commit d5f9d74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion module-bastion.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module "bastion" {
count = var.create_bastion ? 1 : 0
source = "./modules/bastion"
state_id = local.state_id
compartment_id = var.bastion_compartment_id
compartment_id = var.bastion_compartment_id != null ? var.bastion_compartment_id : local.compartment_id

# Bastion
assign_dns = var.assign_dns
Expand Down
1 change: 1 addition & 0 deletions variables-bastion.tf
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@ variable "bastion_upgrade" {

variable "bastion_compartment_id" {
type = string
default = null
}

0 comments on commit d5f9d74

Please sign in to comment.