This is a simple module to help you to create SNS with mail protocol. Below is the article and the repo that help me to create this
https://github.com/rarumalla1/terraform-projects
It's really simple to use this module
module "sns-email" {
source = "github.com/krismorte/tf-sns-mail?ref=v1.00"
sns_name = "my-sns-mail"
sns_subscription_email_address_list = ["[email protected]"]
}
To create a second module you need to named the cloudformation stack as below
module "sns-email" {
source = "github.com/krismorte/tf-sns-mail?ref=v1.00"
sns_name = "my-sns-mail2"
sns_stack = "mySecondStack"
sns_subscription_email_address_list = ["[email protected]"]
}