forked from dwmkerr/terraform-aws-openshift
-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.tf
37 lines (33 loc) · 1017 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
29
30
31
32
33
34
35
36
37
# Setup our providers so that we have deterministic dependecy resolution.
provider "aws" {
region = "${var.region}"
version = "~> 2.19"
}
provider "local" {
version = "~> 1.3"
}
provider "template" {
version = "~> 2.1"
}
// 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}"
}