Search code examples
terraformterraform-provider-aws

Can we add an SNS topic from Terraform with Email subscription


Hi I was wondering if we can add an SNS topic from Terraform with Email subscription.

So it will be easy to setup Alarms and create SNS topic to send alert to an email with one “Terraform apply” command.

Thanks


Solution

  • Terraform currently has a limitation with the provider using Email protocol.

    It is unsupported because the endpoint needs to be authorized and does not generate an ARN until the target email address has been validated. This breaks the Terraform model and as a result are not currently supported.