csuermann / virtual-smart-home

Virtual Smart Home Skill for Amazon Alexa and Node-RED
27 stars 18 forks source link

Cannot resolve serverless.yml: Variables resolution errored with #7

Closed dumdiedum closed 1 year ago

dumdiedum commented 1 year ago

After going through all points until severless deploy (20) there are still some variables which are not set, could you please help me which values are needed to fill those variables?

IS_PROD: ??? (false?) LOG_LEVEL: ??? (warn?) STRIPE_API_KEY: ??? STRIPE_WEBHOOK_SECRET: ???

csuermann commented 1 year ago

These variables got introduced when the "Pro" plan was rolled out. When running your own VSH backend deployment you don't really need them and can set them to nonsense-defaults, e.g.

IS_PROD: false LOG_LEVEL: debug STRIPE_API_KEY: abc STRIPE_WEBHOOK_SECRET: xyz

The Stripe checkout to "Pro" would obviously not work but neither would it be needed.

dumdiedum commented 1 year ago

Thank you! Now deployment will start but throws this error: The CloudFormation template is invalid: Template error: instance of Fn::GetAtt references undefined resource BackchannelLambdaFunction

Can you please help me with this?

csuermann commented 1 year ago

Hard to debug with so little context. Might have to do with the region you try to deploy to or with the version of the Serverless framework you use.

dumdiedum commented 1 year ago

Puh, it's working now. I'm new to AWS and serverless and I had some issues with setup of environment since I'm using Windows. Thank you so much for your support!

csuermann commented 1 year ago

Glad to hear you succeeded! 🎉