-
Notifications
You must be signed in to change notification settings - Fork 22
/
ses_accounts_mail_alias.tf
31 lines (24 loc) · 1.34 KB
/
ses_accounts_mail_alias.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
module "ses-root-accounts-mail-alias" {
# checkov:skip=CKV_AWS_273: IAM user is the only option for SMTP auth
count = var.ses_root_accounts_mail_forward != null ? 1 : 0
providers = { aws = aws, aws.route53 = aws }
source = "schubergphilis/mcaf-ses/aws"
version = "~> 0.1.4"
dmarc = var.ses_root_accounts_mail_forward.dmarc
domain = var.ses_root_accounts_mail_forward.domain
kms_key_id = module.kms_key.id
tags = var.tags
}
module "ses-root-accounts-mail-forward" {
# checkov:skip=CKV_AWS_19: False positive: https://github.com/bridgecrewio/checkov/issues/3847. The S3 bucket created by this module is encrypted with KMS.
# checkov:skip=CKV_AWS_145: False positive: https://github.com/bridgecrewio/checkov/issues/3847. The S3 bucket created by this module is encrypted with KMS.
# checkov:skip=CKV_AWS_272: This module does not support lambda code signing at the moment
count = var.ses_root_accounts_mail_forward != null ? 1 : 0
source = "schubergphilis/mcaf-ses-forwarder/aws"
version = "~> 0.3.0"
bucket_name = "ses-forwarder-${replace(var.ses_root_accounts_mail_forward.domain, ".", "-")}"
from_email = var.ses_root_accounts_mail_forward.from_email
kms_key_arn = module.kms_key.arn
recipient_mapping = var.ses_root_accounts_mail_forward.recipient_mapping
tags = var.tags
}