Skip to content

Add EMR security configuration #76

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
5 changes: 3 additions & 2 deletions aws_datalake/modules/emr/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ resource "aws_emr_cluster" "segment_data_lake_emr_cluster" {
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
security_configuration = var.security_configuration

master_instance_group {
instance_type = var.master_instance_type
Expand Down
6 changes: 6 additions & 0 deletions aws_datalake/modules/emr/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ variable "slave_security_group" {
default = ""
}

variable "security_configuration" {
description = "Name of the EMR security configuration for options like Encryption, IMDS, etc."
type = string
default = ""
}

variable "tags" {
description = "A map of tags to add to all resources. A vendor=segment tag will be added automatically (which is also used by the IAM policy to provide Segment access to submit jobs)."
type = map(string)
Expand Down