I have an AWS Lambda function that is scheduled to run once an hour (as described here http://docs.aws.amazon.com/lambda/latest/dg/getting-started-scheduled-events.html).
The function ftps files from a data provider and copies them to S3.
I have a test environment, and a production environment. For each environment, the ftp address and credentials are different.
How can I configure the lambda function so it can be aware of which environment it's running in, and get the ftp config accordingly?
PS: I am aware of this question: runtime configuration for AWS Lambda function , but it did not help me because I am using a scheduled lamdba using the new scheduled lambda functions feature introduced on Oct 8th 2015, and I cannot see a way to get configuration into the event.