Having a problem with a function subscribing to a pre-existing SNS topic. sls deploy
is giving me the follow error:
Serverless Error ---------------------------------------
An error occurred while provisioning your stack: SNSTopicArnawssnsuseast1092238776114sendtransmissiondev
- Invalid parameter: Topic Name.
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Your Environment Infomation -----------------------------
OS: darwin
Node Version: 6.6.0
Serverless Version: 1.0.3
with the relevant part of serverless.yml:
updateStatusSubmitted:
handler: handler.updateStatusSubmitted
description: update the application status in ES to reflect submission of the application
events:
- sns: ${self:custom.writeEnvVars.SNS_ARN_BASE}send-transmission-${self:custom.stage}
I have created the subscription outside serverless so the function already has a subscription to the topic.
Any thoughts? This deployed once without error, but now gives this error.