. y m l functions: hello: handler: handler.hello description: Index Page events: - http: method: get path: index response: headers: Content-Type: "'text/html'" template: $input.path('$')
t i o n ( n o d e j s ) module.exports.hello = (event, context, cb) => { var renderedPage = `<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <div id=“container">Hello World !</div> </body> </html>`; cb(null, renderedPage ); };
i t a ʣ ɾ h t t p : / / q i i t a . c o m / m o t c h i 0 2 1 4 / i t e m s / 5 6 b 3 7 8 0 a a 5 8 8 4 0 5 7 f b d 5 ɾ h t t p : / / q i i t a . c o m / m o t c h i 0 2 1 4 / i t e m s / a 2 9 9 a b 7 1 7 5 3 d 8 8 c c 1 b d c L a m b d a ͕ H T M L ੜ ɺ A P I G a t e w a y ͔ Β ฦ ͢
e r v e r l e s s h o s t i n g s o l u t i o n f o r W P • DockerΛͬͯʮߋ৽͍͚ͨ࣌ͩ͠ʯWordPressΛىಈ • ϑϩϯτΤϯυ੩తԽͯ͠S3 + CloudFront͔Β৴ • ʮීஈWordPress͕ଘࡏ͠ͳ͍ʯͷͰɺϝϯςφϯείετ͕ݮΒͤΔ