alemuro / terraform-aws-ses-email-forwarding

Terraform module that configures Amazon SES to forward emails to an existing email account.
MIT License
10 stars 5 forks source link

Module contains hard-wired account id #3

Closed andig closed 3 years ago

andig commented 3 years ago

See https://github.com/alemuro/terraform-aws-ses-email-forwarding/blob/master/main.tf#L34

andig commented 3 years ago

Seems it should be possible to use:

data "aws_caller_identity" "current" {}

and

        "Resource": [
            "arn:aws:ses:${var.aws_region}:${data.aws_caller_identity.current.account_id}:identity/*"
        ]