Skip to content

Commit

Permalink
Codestyle fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pomadchin authored and echeipesh committed Oct 25, 2017
1 parent bbf5c68 commit 8235781
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions scripts/emr/terraform/emr-spark.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ provider "aws" {
region = "${var.region}"
}

# `aws_emr_cluster` is built-in to Terraform. We name ours `emrSparkCluster`.
resource "aws_emr_cluster" "emrSparkCluster" {
# `aws_emr_cluster` is built-in to Terraform. We name ours `emr-spark-cluster`.
resource "aws_emr_cluster" "emr-spark-cluster" {
name = "EMR GeoTrellis Zeppelin"
release_label = "emr-5.7.0" # 2017 July
release_label = "emr-5.8.0"

# This it will work if only `Spark` is named here, but booting the cluster seems
# to be much faster when `Hadoop` is included. Ingests, etc., will succeed
Expand All @@ -27,15 +27,15 @@ resource "aws_emr_cluster" "emrSparkCluster" {
instance_count = 1
instance_role = "MASTER"
instance_type = "m3.xlarge"
name = "emrGeoTrellisZeppelin-MasterGroup"
name = "EmrGeoTrellisZeppelin-MasterGroup"
}

instance_group {
bid_price = "0.05"
instance_count = 2
instance_role = "CORE"
instance_type = "m3.xlarge"
name = "emrGeoTrellisZeppelin-CoreGroup"
name = "EmrGeoTrellisZeppelin-CoreGroup"
}

# Location to dump logs
Expand All @@ -57,13 +57,13 @@ resource "aws_emr_cluster" "emrSparkCluster" {
connection {
type = "ssh"
user = "hadoop"
host = "${aws_emr_cluster.emrSparkCluster.master_public_dns}"
host = "${aws_emr_cluster.emr-spark-cluster.master_public_dns}"
private_key = "${file("${var.pem_path}")}"
}
}
}

# Pipable to other programs.
output "emrID" {
value = "${aws_emr_cluster.emrSparkCluster.id}"
value = "${aws_emr_cluster.emr-spark-cluster.id}"
}

0 comments on commit 8235781

Please sign in to comment.