Trying to get up and running with v3 for the first time. But I don’t seem to get anything hitting my lambda functions, they won’t log anything to the console and so on. So I set up a very simple one that responds with {statusCode: 200, body: "Connected"}
. When I run under npx sst dev
and try to GET it, all I get is:
{"body":"sst dev is not running"}
If I disable dev mode as follows:
const httpApi = new sst.aws.ApiGatewayV2("MyApi");
httpApi.route("GET /", {
handler: "packages/functions/src/connect.main",
dev: false
});
It does work!
Wondering if its an IAM permissions thing, but the IAM user used for deployment has full AdministratorAcces set up on AWS.
Why is the live function feature not working?