You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The lambda direct endpoint can't currently be accessed via HTTPS as the TLS certificate specified with the httpsProtocol option is not passed to the Hapi server instance.
This prevents Lambda's being reached by the Swift AWS SDK from within the Xcode Build + Run process.
Lambda configuration in Swift to pass the endpoint:
This error can be resolved by modifying the src/lambda/HttpServer.js file to pass the TLS information (see below)
I'm not sure what the best way to do this would be, so I'm opening this as an issue rather than a pull request. I've created a fork with a temporary fix (master...ermi-ltd:serverless-offline:master). Happy to submit a PR if that would be preferred.
Sample Code
The following patch to src/lambda/HttpServer.js resolved the issues by adding the feature:
It should be possible to hit the direct lambda endpoint (aka, lambdaPort) over HTTPS.
Additional context/Screenshots
I'd propose to add support for the httpsProtocol when accessing Lambda's directly using the lambdaPort, or add a new option called something like: lambdaPortProtocol.
The text was updated successfully, but these errors were encountered:
Feature Request
The lambda direct endpoint can't currently be accessed via HTTPS as the TLS certificate specified with the
httpsProtocol
option is not passed to the Hapi server instance.This prevents Lambda's being reached by the Swift AWS SDK from within the Xcode Build + Run process.
Lambda configuration in Swift to pass the endpoint:
With a HTTPS endpoint, the following error is returned by the AWS Swift SDK when a Lambda is invoked:
This error can be resolved by modifying the src/lambda/HttpServer.js file to pass the TLS information (see below)
I'm not sure what the best way to do this would be, so I'm opening this as an issue rather than a pull request. I've created a fork with a temporary fix (master...ermi-ltd:serverless-offline:master). Happy to submit a PR if that would be preferred.
Sample Code
The following patch to src/lambda/HttpServer.js resolved the issues by adding the feature:
Expected behavior/code
It should be possible to hit the direct lambda endpoint (aka, lambdaPort) over HTTPS.
Additional context/Screenshots
I'd propose to add support for the httpsProtocol when accessing Lambda's directly using the lambdaPort, or add a new option called something like: lambdaPortProtocol.
The text was updated successfully, but these errors were encountered: