Skip to content

Commit

Permalink
🤐 Add Secrets + KMS keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary-H9 committed Mar 20, 2024
1 parent 2eca338 commit 61893c5
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 0 deletions.
83 changes: 83 additions & 0 deletions terraform/environments/analytical-platform-ingestion/kms-keys.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
module "s3_landing_kms" {
#checkov:skip=CKV_TF_1:Module registry does not support commit hashes for versions
source = "terraform-aws-modules/kms/aws"
version = "2.2.1"

aliases = ["s3/landing"]
description = "Family SFTP Server, Landing S3 KMS Key"
enable_default_policy = true

deletion_window_in_days = 7
}

module "s3_processed_kms" {
#checkov:skip=CKV_TF_1:Module registry does not support commit hashes for versions
source = "terraform-aws-modules/kms/aws"
version = "2.2.1"

aliases = ["s3/processed"]
description = "Family SFTP Server, Processed S3 KMS Key"
enable_default_policy = true

deletion_window_in_days = 7
}

module "s3_quarantine_kms" {
#checkov:skip=CKV_TF_1:Module registry does not support commit hashes for versions
source = "terraform-aws-modules/kms/aws"
version = "2.2.1"

aliases = ["s3/quarantine"]
description = "Family SFTP Server, Quarantine S3 KMS Key"
enable_default_policy = true

deletion_window_in_days = 7
}

module "s3_definitions_kms" {
#checkov:skip=CKV_TF_1:Module registry does not support commit hashes for versions
source = "terraform-aws-modules/kms/aws"
version = "2.2.1"

aliases = ["s3/definitions"]
description = "Ingestion Scanning ClamAV S3 KMS Key"
enable_default_policy = true

deletion_window_in_days = 7
}

module "sns_kms" {
#checkov:skip=CKV_TF_1:Module registry does not support commit hashes for versions
source = "terraform-aws-modules/kms/aws"
version = "2.2.1"

aliases = ["sns/notify"]
description = "Key for SNS notifications"
enable_default_policy = true

deletion_window_in_days = 7
}

module "govuk_notify_kms" {
#checkov:skip=CKV_TF_1:Module registry does not support commit hashes for versions
source = "terraform-aws-modules/kms/aws"
version = "2.2.1"

aliases = ["secretsmanager/govuk-notify"]
description = "Key for GOV.UK Notify data"
enable_default_policy = true

deletion_window_in_days = 7
}

module "supplier_data_kms" {
#checkov:skip=CKV_TF_1:Module registry does not support commit hashes for versions
source = "terraform-aws-modules/kms/aws"
version = "2.2.1"

aliases = ["secretsmanager/supplier-data"]
description = "Key for SFTP supplier data"
enable_default_policy = true

deletion_window_in_days = 7
}

0 comments on commit 61893c5

Please sign in to comment.