Skip to content

Commit 12dc944

Browse files
committed
example extra subnet from oke network updated
Signed-off-by: junior <junior@users.noreply.github.com>
1 parent b4b7ed8 commit 12dc944

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ 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
88
display_name = "${local.subnet_name_normalized}-subnet-${local.deploy_id}"
9-
dns_label = "${local.app_name_for_dns}${local.deploy_id}"
9+
dns_label = "${local.subnet_name_for_dns}${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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ variable "freeform_deployment_tags" {
4747

4848
# Subnet Name Locals
4949
locals {
50-
app_name_for_dns = substr(lower(replace(local.app_name,"/\\W|_|\\s/","")), 0, 6)
50+
subnet_name_for_dns = substr(lower(replace(var.subnet_name, "/\\W|_|\\s/", "")), 0, 6)
5151
subnet_name_normalized = substr(replace(lower(var.subnet_name), " ", "-"), 0, 6)
5252
deploy_id = var.freeform_deployment_tags.DeploymentID
5353
}

0 commit comments

Comments
 (0)