Skip to content

Commit

Permalink
add kms-keys.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
AntFMoJ committed Jan 22, 2024
1 parent 8b0d563 commit 0399448
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
##################################################
# EKS Encryption Key
##################################################

resource "aws_kms_key" "eks" {
description = "EKS Secret Encryption Key"
enable_key_rotation = true
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
resource "aws_sagemaker_domain" "studio_domain" {
domain_name = var.domain_name
auth_mode = var.auth_mode
auth_mode = var.auth_mode #

# KMS customer managed key for encryption of EFS
kms_key_id = aws_kms_key.sagemaker_cmk.key_id

default_space_settings {
execution_role = aws_iam_role.sagemaker_studio_execution_role.arn
Expand Down

0 comments on commit 0399448

Please sign in to comment.