File tree Expand file tree Collapse file tree 4 files changed +7
-11
lines changed
Expand file tree Collapse file tree 4 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 33
44output "bastion_public_ip" {
55 value = join (" ," , data. oci_core_vnic . bastion_vnic . * . public_ip_address )
6- }
7-
8- output "bastion_instance_principal_group_name" {
9- value = (var. oci_bastion . enable_instance_principal == true ) ? oci_identity_dynamic_group. bastion_instance_principal [0 ]. name : null
10- }
6+ }
Original file line number Diff line number Diff line change @@ -59,5 +59,5 @@ resource null_resource "update_dynamic_group" {
5959 ]
6060 }
6161
62- count = (var. oke_kms . use_encryption == true && var. bastion . create_bastion == true && var. bastion . enable_instance_principal == true ) ? 1 : 0
62+ count = (var. oke_kms . use_encryption == true && var. admin . bastion_enabled == true && var. admin . admin_instance_principal == true ) ? 1 : 0
6363}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ resource "oci_identity_policy" "admin_instance_principal_dynamic_group" {
77 description = " policy to allow admin host to manage dynamic group"
88 name = " ${ var . label_prefix } -admin-instance-principal-dynamic-group"
99 statements = [" Allow dynamic-group ${ var . dynamic_group } to use dynamic-groups in tenancy" ]
10- count = (var. oke_kms . use_encryption == true && var. bastion . create_bastion == true && var. bastion . enable_instance_principal == true ) ? 1 : 0
10+ count = (var. oke_kms . use_encryption == true && var. admin . bastion_enabled == true && var. admin . admin_instance_principal == true ) ? 1 : 0
1111}
1212
1313resource "oci_identity_policy" "oke-kms" {
Original file line number Diff line number Diff line change @@ -27,10 +27,10 @@ variable "label_prefix" {}
2727
2828variable "admin" {
2929 type = object ({
30- bastion_public_ip = string
31- admin_private_ip = string
32- bastion_enabled = bool
33- admin_enabled = bool
30+ bastion_public_ip = string
31+ admin_private_ip = string
32+ bastion_enabled = bool
33+ admin_enabled = bool
3434 admin_instance_principal = bool
3535 })
3636}
You can’t perform that action at this time.
0 commit comments