Skip to content

Commit aef33da

Browse files
committed
fix empty allowed_sending_addresses logic
1 parent adce360 commit aef33da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ resource "aws_iam_group" "ses_users" {
5050

5151
## IAM Group Policies for SES Domain Identity
5252
locals {
53-
allowed_sending_addresses = var.allowed_sending_addresses != [] ? var.allowed_sending_addresses : ["*@${var.domain}"]
53+
allowed_sending_addresses = length(var.allowed_sending_addresses) != 0 ? var.allowed_sending_addresses : ["*@${var.domain}"]
5454
}
5555

5656
data "aws_iam_policy_document" "ses_group_sending_policy" {

0 commit comments

Comments
 (0)