terraform-aws-emr-cluster
terraform-aws-emr-cluster copied to clipboard
Doesn't Spin the EMR instance if In private subnet.
Need to add the following service group inside ec2_attributes
service_access_security_group = "${aws_security_group.emr_service_access.id}"
And the resource
resource "aws_security_group" "emr_service_access" {
vpc_id = "${var.vpc_id}"
revoke_rules_on_delete = true
ingress {
from_port = 0
to_port = 65535
protocol = "tcp"
#cidr_blocks = ["0.0.0.0/0"]
self = true
}
tags {
Name = "sg${var.name}Service_Access"
Project = "${var.project}"
Environment = "${var.environment}"
}
}