-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: disable KMS stuff after testing
- Loading branch information
1 parent
8f7431f
commit fad06e1
Showing
13 changed files
with
102 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# This KMS key is used to implement SSE-KMS for Athena query results, improving the | ||
# encryption at rest standards (https://docs.aws.amazon.com/athena/latest/ug/encryption.html | ||
# for details). It is intended to be manually configured for the `primary` Athena | ||
# Workgroup for now given we are not yet managing Workgroups through Terraform. | ||
# ======================================================================================= | ||
# KMS KEYS ARE NOT CREATED BY DEFAULT TO AVOID EXTRA COSTS IN THE BLUEPRINT VALIDATION | ||
# ACCOUNTS. DELETE THE LINES DELIMITED BY `# =...=` AND UNCOMMENT THE FOLLOWING RESOURCES | ||
# TO CREATE/ENABLE THEM. | ||
# ======================================================================================= | ||
# resource "aws_kms_key" "athena_query_results" { | ||
# description = "Protects Athena query results tackled by the AWS Glue CI/CD Blueprint" | ||
# enable_key_rotation = true | ||
# } | ||
|
||
# resource "aws_kms_alias" "athena_query_results" { | ||
# name = "alias/glue-ci-cd-blueprint/athena-query-results-${var.environment}" | ||
# target_key_id = aws_kms_key.athena_query_results.key_id | ||
# } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
# This KMS key is used to implement SSE-KMS encryption in S3. | ||
# This KMS key is used to implement SSE-KMS in S3. | ||
# | ||
# Since January, 2023, AWS applies server-side encryption with Amazon S3 managed keys | ||
# (SSE-S3) as the base level of encryption for every bucket in S3. However, users can | ||
# choose to configure buckets to use server-side encryption with AWS Key Management | ||
# Since January, 2023, AWS applies server-side encryption (SSE) with Amazon S3 managed | ||
# keys (SSE-S3) as the base level of encryption for every bucket in S3. However, users | ||
# can choose to configure buckets to use server-side encryption with AWS Key Management | ||
# Service keys (SSE-KMS) instead. Please refer to | ||
# https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingEncryption.html for further | ||
# details. | ||
# https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingEncryption.html for details. | ||
# ======================================================================================= | ||
# THE KMS KEY IS NOT CREATED BY DEFAULT TO AVOID EXTRA COSTS IN THE BLUEPRINT VALIDATION | ||
# KMS KEYS ARE NOT CREATED BY DEFAULT TO AVOID EXTRA COSTS IN THE BLUEPRINT VALIDATION | ||
# ACCOUNTS. DELETE THE LINES DELIMITED BY `# =...=` AND UNCOMMENT THE FOLLOWING RESOURCES | ||
# TO CREATE/ENABLE IT. | ||
# TO CREATE/ENABLE THEM. | ||
# ======================================================================================= | ||
resource "aws_kms_key" "s3" { | ||
description = "This key protects S3 objects tackled by the AWS Glue CI/CD Blueprint" | ||
enable_key_rotation = true | ||
} | ||
# resource "aws_kms_key" "s3_data" { | ||
# description = "Protects data tackled by the AWS Glue CI/CD Blueprint and stored in S3" | ||
# enable_key_rotation = true | ||
# } | ||
|
||
resource "aws_kms_alias" "s3" { | ||
name = "alias/glue-ci-cd-blueprint/s3-${var.environment}" | ||
target_key_id = aws_kms_key.s3.key_id | ||
} | ||
# resource "aws_kms_alias" "s3_data" { | ||
# name = "alias/glue-ci-cd-blueprint/s3-data-${var.environment}" | ||
# target_key_id = aws_kms_key.s3_data.key_id | ||
# } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters