Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSNS topic name is not propagated to both serverelss functions #1014
Comments
|
I believe this is beginner-friendly |
|
@mkwatson Yeah. Agree on that. It depends on |


Describe the bug
If you change the SNS topic name in the process function definition, the service breaks because the topic is hard-coded in the other serverless function
The HTTP API function expects an SNS topic that doesn't exist.
To Reproduce
Steps to reproduce the behavior:
serverless.ymlchange the sns topic name here:serverless deployExpected behavior
The two serverless functions should always use the same SNS topic name.
Version:
[e.g. 0.4.5]
Additional context
It should be as easy as adding an environment variable to the HTTP API function that's the topic name. Something like:
And then read from that env variable in the HTTP API function: