Skip to content

Commit c8dc847

Browse files
authored
added network outputs to facilitate reuse from hashicorp registry (#147)
Signed-off-by: Ali Mukadam <[email protected]>
1 parent b7edce2 commit c8dc847

File tree

4 files changed

+30
-3
lines changed

4 files changed

+30
-3
lines changed

CHANGELOG.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ All notable changes to this project are documented in this file.
77

88
The format is based on {uri-changelog}[Keep a Changelog].
99

10+
== 2.1.5 (April 06, 2020)
11+
* Added ig_route_id, nat_route_id, subnet_ids, vcn_id for reuse (#145)
12+
1013
== 2.1.4 (March 31, 2020)
1114
* removed provider.tf so module can be used from hashicorp registry, added instructions for using this repo and hashicorp module (#130)
1215
* fixed incorrect part about bastion host and tools in topology (#141)

docs/prerequisites.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Start by installing Terraform and configuring your path.
5252

5353
=== Download Terraform
5454

55-
1. Open your browser and navigate to the {uri-terraform-download}[Terraform download page]. You need version 0.12.4+.
55+
1. Open your browser and navigate to the {uri-terraform-download}[Terraform download page]. You need version 0.12.16+.
5656

5757
2. Download the appropriate version for your operating system
5858

docs/quickstart.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ provider "oci" {
119119
----
120120
module "oke" {
121121
source = "oracle-terraform-modules/oke/oci"
122-
version = "2.1.3"
122+
version = "2.1.5"
123123
# insert the 23 required variables here
124124
}
125125
----
@@ -130,7 +130,7 @@ module "oke" {
130130
----
131131
module "oke" {
132132
source = "oracle-terraform-modules/oke/oci"
133-
version = "2.1.3"
133+
version = "2.1.5"
134134
135135
compartment_id = var.compartment_id
136136
tenancy_id = var.tenancy_id

outputs.tf

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,30 @@
11
# Copyright 2017, 2019, Oracle Corporation and/or affiliates. All rights reserved.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl
33

4+
# for reuse
5+
6+
output "ig_route_id" {
7+
description = "id of route table to vcn internet gateway"
8+
value = module.base.ig_route_id
9+
}
10+
11+
output "nat_route_id" {
12+
description = "id of route table to nat gateway attached to vcn"
13+
value = module.base.nat_route_id
14+
}
15+
16+
output "subnet_ids" {
17+
description = "map of subnet ids (worker, int_lb, pub_lb) used by OKE."
18+
value = module.network.subnet_ids
19+
}
20+
21+
output "vcn_id" {
22+
description = "id of vcn where oke is created. use this vcn id to add additional resources"
23+
value = module.base.vcn_id
24+
}
25+
26+
# convenient output
27+
428
output "bastion_public_ip" {
529
description = "public ip address of bastion host"
630
value = module.base.bastion_public_ip

0 commit comments

Comments
 (0)