forked from dwmkerr/terraform-aws-openshift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
28 lines (26 loc) · 872 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Setup the core provider information.
provider "aws" {
region = "${var.region}"
}
// Create the OpenShift cluster using our module.
module "openshift" {
source = "./modules/openshift"
region = "${var.region}"
amisize = "t2.large" // Smallest that meets the min specs for OS
vpc_cidr = "10.0.0.0/16"
subnet_cidr = "10.0.1.0/24"
key_name = "openshift"
public_key_path = "${var.public_key_path}"
cluster_name = "openshift-cluster"
cluster_id = "openshift-cluster-${var.region}"
}
// Output some useful variables for quick SSH access etc.
output "master-url" {
value = "https://${module.openshift.master-public_ip}.xip.io:8443"
}
output "master-public_ip" {
value = "${module.openshift.master-public_ip}"
}
output "bastion-public_ip" {
value = "${module.openshift.bastion-public_ip}"
}