Re:Serverless, Inc. lands $10M Series A to build serverless ...
by Zelphyr on Monday July 30, 2018 @03:56PM
(#17647459)
How do I debug locally/on Docker with services like SNS and ElasticTranscoder? I know there are emulators but those have gaps in services that providers like AWS offer. Not to mention, I'm debugging with an emulator and not the real thing.
Re:Serverless, Inc. lands $10M Series A to build serverless ...
by scarface74 on Monday July 30, 2018 @08:31PM
(#17649562)
I can’t speak for ElasticTranscoder, but there is nothing stopping you from running your lambda function locally and still connect to all of the AWS services.
Just like people have been calling their controller actions from test harnesses for ages to test their APIs. You can call call your handler the same way.
At the end of the day, AWS is just passing you a JSON message. You can call your lambda function manually with the same JSON payload locally.
Re:Serverless, Inc. lands $10M Series A to build serverless ...
by laumars on Tuesday July 31, 2018 @01:49AM
(#17650827)
This is exactly how we test our lambda code that call AWS media encoders
Re:Serverless, Inc. lands $10M Series A to build serverless ...
by laumars on Monday July 30, 2018 @04:07PM
(#17647538)
You could run the docker container on an EC2 instance or have an SSH bastion / VPN tunnel between yourself and your AWS VPC.
I tend to opt for the SSH tunnel route for personal projects but use OpenVPN with a secrets management (eg Vault or AWS's new key store) for professional projects (ie when you have several people on your team).
AWS is versatile enough that you do actually have several options available to you.
I think the issue is some people see "serverless" as an all or nothing scenario which it really isn't. Some problems are solved well with serverless and some are not. It's like the container vs virtual machine argument. One isn't designed to replace another - they're just different tools for solving different problems; each have their own strengths and weaknesses.