Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to send a list of arns for the default domain policy #37

Open
mbradleySoftrams opened this issue Mar 21, 2024 · 0 comments

Comments

@mbradleySoftrams
Copy link

looking for a simple fix to allow the IaC to send a list of arns for the default policy, i had a branch with the change but unable to push to the repo.

here is the change i did locally

data "aws_iam_policy_document" "document" {
  count = var.enabled && var.enable_domain ? 1 : 0
  statement {
    actions   = ["SES:SendEmail", "SES:SendRawEmail"]
    resources = [aws_ses_domain_identity.default[0].arn]
    principals {
      identifiers = var.domain_policy_arns
      type        = "AWS"
    }
  }
}

and the new variable that defaults to the original value

variable "domain_policy_arns" {
  type        = list(string)
  default     = ["*"]
  description = "(Optional) A list of AWS arns allowed to send email through SES."
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant