Skip to content

Commit

Permalink
EMR (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
sekka1 authored Mar 10, 2022
1 parent b73cc9c commit aae69c7
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
5 changes: 5 additions & 0 deletions terraform-modules/aws/emr/security_configuration/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
resource "aws_emr_security_configuration" "this" {
name = var.name

configuration = var.configuration
}
7 changes: 7 additions & 0 deletions terraform-modules/aws/emr/security_configuration/outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
output "id" {
value = aws_emr_security_configuration.this.id
}

output "name" {
value = aws_emr_security_configuration.this.name
}
23 changes: 23 additions & 0 deletions terraform-modules/aws/emr/security_configuration/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
variable "name" {
type = string
default = "security_config"
description = "The name of the security configuration"
}

variable "configuration" {
type = string
default = <<EOF
{
"EncryptionConfiguration": {
"AtRestEncryptionConfiguration": {
"S3EncryptionConfiguration": {
"EncryptionMode": "SSE-S3"
}
},
"EnableInTransitEncryption": false,
"EnableAtRestEncryption": true
}
}
EOF
description = "The security configuration json"
}

0 comments on commit aae69c7

Please sign in to comment.