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
resource "aws_sns_topic" "topic" {
name = "topic-name"
}
resource "aws_sns_topic_subscription" "email-target" {
topic_arn = aws_sns_topic.topic.arn
protocol = "email"
endpoint = "[email protected]"
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With