I'm using the serverless framework to deploy my AWS stacks, and I’m trying to add an AWS SES template to my resources.
However, I keep getting “unrecognized type” from CloudFormation for AWS::SES::Template
.
This is definitely a defined CloudFormation resource type, so I don’t know what’s going on. I've seen identical snippets describing SES templates that supposedly work, but for me it doesn't. Any ideas what could be causing this?
The section in my serverless.yml
looks like this:
resources:
Resources:
EmailNotificationTemplate:
Type: AWS::SES::Template
Properties:
Template:
TemplateName: "test"
TextPart: "body text"
SubjectPart: "subject"
Turns out this was due to SES not being available in the region I was using. It sure would've been nice with a error message such as "type not supported in region", but instead the generic "unrecognized type" was raised.