Skip to content

Commit

Permalink
Add permission for SESv2
Browse files Browse the repository at this point in the history
  • Loading branch information
LMAX-iwnf committed Nov 16, 2024
1 parent 2be8990 commit f82b4ae
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 2 deletions.
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,25 @@ The audit policy is comprised of the following permissions:
| | codebuild:BatchGetBuilds | |
| SNS | sns:GetDataProtectionPolicy | * |
| | sns:ListPlatformApplications | |
| | sns:GetSubscriptionAttributes | |
| | sns:GetSubscriptionAttributes | |
| SES | ses:ListContactLists | * |
| | ses:GetContactList | |
| | ses:ListContacts | |
| | ses:GetContact | |
| | ses:ListCustomVerificationEmailTemplates | |
| | ses:GetCustomVerificationEmailTemplate | |
| | ses:GetDedicatedIpPool | |
| | ses:GetBlacklistReports | |
| | ses:GetDedicatedIp | |
| | ses:ListDeliverabilityTestReports | |
| | ses:GetDeliverabilityTestReport | |
| | ses:ListEmailIdentities | |
| | ses:GetEmailIdentity | |
| | ses:GetEmailIdentityPolicies | |
| | ses:ListEmailTemplates | |
| | ses:GetEmailTemplate | |
| | ses:ListImportJobs | |
| | ses:GetImportJob | |
| | ses:ListRecommendations | |
| | ses:ListSuppressedDestinations | |
| | ses:GetSuppressedDestination | |
29 changes: 28 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ data "aws_iam_policy_document" "lacework_audit_policy" {
actions = ["glacier:ListTagsForVault"]
resources = ["*"]
}

statement {
sid = "WAFREGIONAL"
actions = ["waf-regional:ListRules",
Expand Down Expand Up @@ -155,6 +155,33 @@ data "aws_iam_policy_document" "lacework_audit_policy" {
actions = ["states:ListTagsForResource"]
resources = ["*"]
}

statement {
sid = "SES"
actions = ["ses:ListContactLists",
"ses:GetContactList",
"ses:ListContacts",
"ses:GetContact",
"ses:ListCustomVerificationEmailTemplates",
"ses:GetCustomVerificationEmailTemplate",
"ses:GetDedicatedIpPool",
"ses:GetBlacklistReports",
"ses:GetDedicatedIp",
"ses:ListDeliverabilityTestReports",
"ses:GetDeliverabilityTestReport",
"ses:ListEmailIdentities",
"ses:GetEmailIdentity",
"ses:GetEmailIdentityPolicies",
"ses:ListEmailTemplates",
"ses:GetEmailTemplate",
"ses:ListImportJobs",
"ses:GetImportJob",
"ses:ListRecommendations",
"ses:ListSuppressedDestinations",
"ses:GetSuppressedDestination",
]
resources = ["*"]
}
}

resource "aws_iam_policy" "lacework_audit_policy" {
Expand Down

0 comments on commit f82b4ae

Please sign in to comment.