Experimenting with Serverless Framework and Go
make build
make deploy
{
"Headers": {
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8",
"accept-encoding": "gzip, deflate, br, zstd",
"accept-language": "en-NZ,en;q=0.8",
"cache-control": "max-age=0",
"content-length": "0",
"host": "xxx.execute-api.us-east-1.amazonaws.com",
"priority": "u=0, i",
"sec-ch-ua": "\"Chromium\";v=\"124\", \"Brave\";v=\"124\", \"Not-A.Brand\";v=\"99\"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "\"Windows\"",
"sec-fetch-dest": "document",
"sec-fetch-mode": "navigate",
"sec-fetch-site": "none",
"sec-fetch-user": "?1",
"sec-gpc": "1",
"upgrade-insecure-requests": "1",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36",
"x-amzn-trace-id": "Root=1-662d7c73-4f71e81d4***",
"x-forwarded-for": "123.1.2.3",
"x-forwarded-port": "443",
"x-forwarded-proto": "https"
},
"RawPath": "/hello",
"RawQueryString": "id=1",
"message": "Go Serverless v1.0! Your function executed successfully!"
}