Skip to content

Commit 258e827

Browse files
committed
updates
Signed-off-by: junior <junior@users.noreply.github.com>
1 parent 110af3c commit 258e827

File tree

4 files changed

+8
-13
lines changed

4 files changed

+8
-13
lines changed

modules/new-subnet-from-oke-vcn/security-lists.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
resource "oci_core_security_list" "extra_subnet_security_list" {
66
compartment_id = var.oke_vcn_compartment_ocid
7-
display_name = "${local.subnet_name_normalized}-seclist-${random_string.deploy_id.result}"
7+
display_name = "${local.subnet_name_normalized}-seclist-${local.deploy_id}"
88
vcn_id = var.oke_vcn_ocid
9-
freeform_tags = local.freeform_deployment_tags
9+
freeform_tags = var.freeform_deployment_tags
1010

1111
# Ingresses
1212

modules/new-subnet-from-oke-vcn/subnet.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@
55
resource "oci_core_subnet" "extra_subnet" {
66
cidr_block = lookup(var.network_cidrs, "EXTRA-SUBNET-REGIONAL-CIDR")
77
compartment_id = var.oke_vcn_compartment_ocid
8-
display_name = "${local.subnet_name_normalized}-subnet-${random_string.deploy_id.result}"
9-
dns_label = "${local.subnet_name_normalized}${random_string.deploy_id.result}"
8+
display_name = "${local.subnet_name_normalized}-subnet-${local.deploy_id}"
9+
dns_label = "${local.subnet_name_normalized}${local.deploy_id}"
1010
vcn_id = var.oke_vcn_ocid
1111
prohibit_public_ip_on_vnic = true
1212
route_table_id = oci_core_route_table.extra_subnet_route_table[0].id
1313
dhcp_options_id = var.oke_vcn_default_dhcp_id
1414
security_list_ids = [oci_core_security_list.extra_subnet_security_list[0].id]
15-
freeform_tags = local.freeform_deployment_tags
15+
freeform_tags = var.freeform_deployment_tags
1616
}
1717

1818
resource "oci_core_route_table" "extra_subnet_route_table" {
1919
compartment_id = var.oke_vcn_compartment_ocid
2020
vcn_id = var.oke_vcn_ocid
21-
display_name = "${local.subnet_name_normalized}-route-table-${random_string.deploy_id.result}"
22-
freeform_tags = local.freeform_deployment_tags
21+
display_name = "${local.subnet_name_normalized}-route-table-${local.deploy_id}"
22+
freeform_tags = var.freeform_deployment_tags
2323

2424
route_rules {
2525
description = "Traffic to/from internet"

modules/oci-vault-kms/policies.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ locals {
7676

7777
# Conditional locals
7878
locals {
79-
app_dynamic_group = var.create_dynamic_group_for_nodes_in_compartment ? oci_identity_dynamic_group.app_dynamic_group.0.name : "void"
79+
app_dynamic_group = (var.use_encryption_from_oci_vault && var.create_dynamic_group_for_nodes_in_compartment) ? oci_identity_dynamic_group.app_dynamic_group.0.name : "void"
8080
app_name_normalized = substr(replace(lower(var.freeform_deployment_tags.AppName), " ", "-"), 0, 6)
8181
app_name = var.freeform_deployment_tags.AppName
8282
deploy_id = var.freeform_deployment_tags.DeploymentID

modules/oke/datasources.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,3 @@ data "oci_objectstorage_namespace" "ns" {
4747
compartment_id = local.oke_compartment_ocid
4848
}
4949

50-
# Randoms
51-
resource "random_string" "deploy_id" {
52-
length = 4
53-
special = false
54-
}

0 commit comments

Comments
 (0)