Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Switch gp2 EBS volumes to gp3 #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions modules/emr/main.tf
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
# Creates an EMR cluster that will be used to transform and load events into the Data Lake.
# https://www.terraform.io/docs/providers/aws/r/emr_cluster.html
resource "aws_emr_cluster" "segment_data_lake_emr_cluster" {
name = "${var.cluster_name}"
name = var.cluster_name
release_label = "emr-5.27.0"
applications = ["Hadoop", "Hive", "Spark"]

log_uri = "s3://${var.s3_bucket}/${var.emr_logs_s3_prefix}"

ec2_attributes {
subnet_id = "${var.subnet_id}"
emr_managed_master_security_group = "${var.master_security_group}"
emr_managed_slave_security_group = "${var.slave_security_group}"
instance_profile = "${var.iam_emr_instance_profile}"
subnet_id = var.subnet_id
emr_managed_master_security_group = var.master_security_group
emr_managed_slave_security_group = var.slave_security_group
instance_profile = var.iam_emr_instance_profile
}

service_role = "${var.iam_emr_service_role}"
autoscaling_role = "${var.iam_emr_autoscaling_role}"
service_role = var.iam_emr_service_role
autoscaling_role = var.iam_emr_autoscaling_role

master_instance_group {
instance_type = "${var.master_instance_type}"
instance_type = var.master_instance_type
name = "master_group"

ebs_config {
size = "64"
type = "gp2"
type = "gp3"
volumes_per_instance = 1
}
}

core_instance_group {
instance_type = "${var.core_instance_type}"
instance_count = "${var.core_instance_count}"
instance_type = var.core_instance_type
instance_count = var.core_instance_count
name = "core_group"

ebs_config {
size = "64"
type = "gp2"
type = "gp3"
volumes_per_instance = 1
}

Expand Down Expand Up @@ -115,14 +115,14 @@ EOF

resource "aws_emr_instance_group" "task" {
name = "task_group"
cluster_id = "${aws_emr_cluster.segment_data_lake_emr_cluster.id}"
cluster_id = aws_emr_cluster.segment_data_lake_emr_cluster.id

instance_type = "${var.task_instance_type}"
instance_count = "${var.task_instance_count}"
instance_type = var.task_instance_type
instance_count = var.task_instance_count

ebs_config {
size = "64"
type = "gp2"
type = "gp3"
volumes_per_instance = 1
}

Expand Down