File tree Expand file tree Collapse file tree 5 files changed +10
-1
lines changed Expand file tree Collapse file tree 5 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ module "bastion" {
6060 timezone = var. timezone
6161 upgrade = var. bastion_upgrade
6262 user = var. bastion_user
63+ volume_kms_key_id = var. bastion_volume_kms_key_id
6364
6465 # Standard tags as defined if enabled for use, or freeform
6566 # User-provided tags are merged last and take precedence
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ resource "oci_core_instance" "bastion" {
6868 boot_volume_size_in_gbs = local. boot_volume_size
6969 source_id = var. image_id
7070 source_type = " image"
71+ kms_key_id = var. volume_kms_key_id
7172 }
7273
7374 lifecycle {
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ variable "subnet_id" { type = string }
2323variable "timezone" { type = string }
2424variable "upgrade" { type = bool }
2525variable "user" { type = string }
26+ variable "volume_kms_key_id" { type = string }
2627
2728# Tags
2829variable "defined_tags" { type = map (string ) }
Original file line number Diff line number Diff line change @@ -93,4 +93,10 @@ variable "bastion_await_cloudinit" {
9393 default = true
9494 description = " Whether to block until successful connection to bastion and completion of cloud-init."
9595 type = bool
96+ }
97+
98+ variable "bastion_volume_kms_key_id" {
99+ default = null
100+ description = " The OCID of the OCI KMS key to assign as the master encryption key for the bastion host boot volume."
101+ type = string
96102}
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ variable "operator_shape" {
127127
128128variable "operator_volume_kms_key_id" {
129129 default = null
130- description = " The OCID of the OCI KMS key to assign as the master encryption key for the boot volume."
130+ description = " The OCID of the OCI KMS key to assign as the master encryption key for the operator host boot volume."
131131 type = string
132132}
133133
You can’t perform that action at this time.
0 commit comments