Closed HAK-CODE closed 2 years ago
I am able to resolve this once your connection with bastion is there use docker.for.mac.localhost
is on MAC as your host
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "aws-sam",
"request": "direct-invoke",
"name": "api-data-services:TimeseriesServiceData",
"invokeTarget": {
"target": "template",
"templatePath": "${workspaceFolder}/template.yaml",
"logicalId": "TimeseriesServiceData"
},
"lambda": {
"environmentVariables": {
"AWS_ACCOUNT_ID": "12345678910",
"EC_ENDPOINT": "docker.for.mac.localhost",
"EC_PORT": "6379",
"EC_READER_ENDPOINT": "docker.for.mac.localhost",
"EC_READER_PORT": "6379"
}
}
}
]
}
Environment
Details I have bastion connected via this command
I am able to use all redis command and fetch all keys in remote cloud, same my lambda is working correctly on cloud sub as soon I try to execute via debugger vscode
launch.json
As soon code reaches the part to
GET
key I got this errorIs there something I am missing some kind port forwarding etc