I’ve reviewed the thread on stage variables and how the plan is to replace them with env variables. But I still don’t understand the recommended approach to the following…
I have a function which needs to point to a different database IP address depending on what stage it’s in. How do I accomplish this?
So there’s code in my function like…
var client = new cassandra.Client({ contactPoints: [event.stageVariables.CassandraIP], keyspace: event.stageVariables.Keyspace })
What do I replace this with, or how do I reconstruct this, so that it works with serverless (both today, and in the future)?