"Hello Daisaku Hazui!"<\/code>\u3068\u51fa\u529b\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n\u95a2\u6570\u306e\u30c7\u30d7\u30ed\u30a4<\/h3>\n
\u95a2\u6570\u3092\u4fee\u6b63\u3057\u305f\u3089AWS Lambda\u306b\u30c7\u30d7\u30ed\u30a4\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n
\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n
PS \/Users\/daisakuhazui\/mmmcorp\/serverless-blog\/powershell\/HelloPowerShell> Publish-AWSPowerShellLambda -ScriptPath .HelloPowerShell.ps1 -Name HelloPowerShell -Region ap-northeast-1 -Profile DaisakuHazui<\/code><\/pre>\n\u30c7\u30d7\u30ed\u30a4\u4e2d\u306bSelect IAM Role that to provide AWS credentials to your code:<\/code>\u3068\u805e\u304b\u308c\u308b\u306e\u3067\u3001***Create new IAM Role ***<\/code>\u306b\u8a72\u5f53\u3059\u308b\u6570\u5b57\u3092\u5165\u529b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\nEnter name of the new IAM Role:<\/code>\u3068\u805e\u304b\u308c\u305f\u3089HelloPowerShellRole<\/code>\u3068\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n\u95a2\u6570\u3092\u30c6\u30b9\u30c8\u3059\u308b<\/h3>\n
AWS\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089Lambda\u3092\u958b\u304d\u307e\u3059\u3002<\/p>\n
\u95a2\u6570\u306e\u4e00\u89a7\u304b\u3089\u3001\u5148\u307b\u3069\u4f5c\u6210\u3057\u305fHelloPowerShell<\/code>\u3092\u9078\u629e\u3057\u305f\u3089\u65e9\u901f\u52d5\u4f5c\u30c6\u30b9\u30c8\u3057\u3066\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\u95a2\u6570\u306e\u8a73\u7d30\u753b\u9762\u53f3\u4e0a\u306e\u30c6\u30b9\u30c8\u30a4\u30d9\u30f3\u30c8\u306e\u8a2d\u5b9a<\/code>\u3092\u9078\u629e\u3057\u3001\u30c6\u30b9\u30c8\u30a4\u30d9\u30f3\u30c8\u3092\u4e0b\u8a18\u306e\u3088\u3046\u306b\u4fee\u6b63\u3057\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n{\n "firstName": "Daisaku",\n "lastName": "Hazui"\n}<\/code><\/pre>\n\u4fdd\u5b58\u3067\u304d\u305f\u3089\u30c6\u30b9\u30c8<\/code>\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u6210\u529f\u3057\u305f\u3089\u5b9f\u884c\u7d50\u679c\u306e\u30ed\u30b0\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\u95a2\u6570\u306e\u5b9f\u884c\u7d50\u679c\u3068\u3057\u3066"Hello Daisaku Hazui!"<\/code>\u304c\u8fd4\u3063\u3066\u304d\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\nGo 1.x<\/h2>\n\u95a2\u6570\u3092\u4f5c\u6210<\/h3>\n
\u203bGo\u8a00\u8a9e\u306f1.11\u4ee5\u524d\u306e\u5834\u5408\u3001GOPATH<\/code>\u3092\u610f\u8b58\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306bGo\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3054\u81ea\u8eab\u306e\u958b\u767a\u74b0\u5883\u306b\u5408\u3063\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u914d\u7f6e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\nmain.go<\/code>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\npackage main\n\nimport (\n "context"\n "fmt"\n "github.com\/aws\/aws-lambda-go\/lambda"\n)\n\ntype MyEvent struct {\n FirstName string json:"firstName"<\/code>\n LastName string json:"lastName"<\/code>\n}\n\nfunc HandleRequest(ctx context.Context, name MyEvent) (string, error) {\n return fmt.Sprintf("Hello %s %s!", name.FirstName, name.LastName), nil\n}\n\nfunc main() {\n lambda.Start(HandleRequest)\n}<\/code><\/pre>\nevent\u3092\u53d7\u3051\u53d6\u308b\u305f\u3081\u306bMyEvent<\/code>\u3068\u3044\u3046\u69cb\u9020\u4f53\u3092\u5b9a\u7fa9\u3057\u3001main()<\/code>\u304b\u3089HandleRequest<\/code>\u3092\u547c\u3073\u51fa\u3057\u3066\u76ee\u7684\u306e\u6587\u5b57\u5217\u3092\u51fa\u529b\u3055\u305b\u3066\u3044\u307e\u3059\u3002<\/p>\n\u203bimport<\/code>\u5185\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u3059\u304c\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u304a\u4f7f\u3044\u306e\u4f9d\u5b58\u7ba1\u7406\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\u95a2\u6570\u3092\u30c7\u30d7\u30ed\u30a4\u3059\u308b<\/h3>\n
\u5148\u307b\u3069\u4f5c\u6210\u3057\u305fGo\u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c\u53ef\u80fd\u306a\u72b6\u614b\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u305f\u4e0a\u3067\u3001ZIP\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u30c7\u30d7\u30ed\u30a4\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n
$ GOOS=linux GOARCH=amd64 go build -o main\n\n$ zip main.zip .\/main<\/code><\/pre>\n\u30c7\u30d7\u30ed\u30a4\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u305f\u3089\u3001AWS\u30b3\u30f3\u30bd\u30fc\u30eb\u4e0a\u3067\u30e9\u30f3\u30bf\u30a4\u30e0\u304cGo\u306e\u95a2\u6570\u3092\u4f5c\u6210\u3057\u3001\u95a2\u6570\u30d1\u30c3\u30b1\u30fc\u30b8<\/code>\u304b\u3089\u4e0a\u8a18\u306eZIP\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n\u95a2\u6570\u3092\u30c6\u30b9\u30c8\u3059\u308b<\/h3>\n
ZIP\u30d5\u30a1\u30a4\u30eb\u304c\u6b63\u5e38\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3067\u304d\u305f\u3089\u95a2\u6570\u3092\u30c6\u30b9\u30c8\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n
\u95a2\u6570\u306e\u8a73\u7d30\u753b\u9762\u53f3\u4e0a\u306e\u30c6\u30b9\u30c8\u30a4\u30d9\u30f3\u30c8\u306e\u8a2d\u5b9a<\/code>\u3092\u9078\u629e\u3057\u3001\u30c6\u30b9\u30c8\u30a4\u30d9\u30f3\u30c8\u3092\u4e0b\u8a18\u306e\u3088\u3046\u306b\u4fee\u6b63\u3057\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n{\n "firstName": "Daisaku",\n "lastName": "Hazui"\n}<\/code><\/pre>\n\u4fdd\u5b58\u3067\u304d\u305f\u3089\u30c6\u30b9\u30c8<\/code>\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u6210\u529f\u3057\u305f\u3089\u5b9f\u884c\u7d50\u679c\u306e\u30ed\u30b0\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\u95a2\u6570\u306e\u5b9f\u884c\u7d50\u679c\u3068\u3057\u3066"Hello Daisaku Hazui!"<\/code>\u304c\u8fd4\u3063\u3066\u304d\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\nJava 11<\/h2>\n\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210<\/h3>\n
\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u6210\u306b\u306a\u308b\u3088\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n
java-lambda\n\u251c\u2500\u2500 pom.xml\n\u2514\u2500\u2500 src\n \u00a0\u00a0 \u2514\u2500\u2500 main\n \u00a0\u00a0 \u2514\u2500\u2500 java\n \u00a0\u00a0 \u2514\u2500\u2500 com\n \u00a0\u00a0 \u2514\u2500\u2500 example\n \u00a0\u00a0 \u251c\u2500\u2500 HelloWorld.java\n \u00a0\u00a0 \u2514\u2500\u2500 Request.java<\/code><\/pre>\n\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3067\u304d\u305f\u3089\u3001Request.java<\/code>\u3092\u4e0b\u8a18\u306e\u3088\u3046\u306b\u4fee\u6b63\u3057\u307e\u3059\u3002<\/p>\npackage com.example;\n\npublic class Request {\n String firstName;\n String lastName;\n\n public String getFirstName() {\n return firstName;\n }\n\n public void setFirstName(String firstName) {\n this.firstName = firstName;\n }\n\n public String getLastName() {\n return lastName;\n }\n\n public void setLastName(String lastName) {\n this.lastName = lastName;\n }\n\n public Request(String firstName, String lastName) {\n this.firstName = firstName;\n this.lastName = lastName;\n }\n\n public Request() {\n }\n}<\/code><\/pre>\n\u6b21\u306b\u3001Hello.java<\/code>\u3092\u4e0b\u8a18\u306e\u3088\u3046\u306b\u4fee\u6b63\u3057\u307e\u3059\u3002<\/p>\npackage com.example;\n\nimport com.amazonaws.services.lambda.runtime.Context;\nimport com.amazonaws.services.lambda.runtime.RequestHandler;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\n\/\/ \/**\n\/\/ * AWS Lambda \u306e\u30cf\u30f3\u30c9\u30e9\u30fc\u30e1\u30bd\u30c3\u30c9\n\/\/ *\n\/\/ * @param input \u5165\u529b\u30c7\u30fc\u30bf\n\/\/ * @param context AWS Lambda Context \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\n\/\/ * @return \u51fa\u529b\u30c7\u30fc\u30bf\n\/\/ *\/\npublic class Hello implements RequestHandler<Request, String> {\n\n public String handleRequest(Request request, Context context) {\n String greetingString = String.format("Hello %s %s !", request.firstName, request.lastName);\n return greetingString;\n }\n}<\/code><\/pre>\n\u6700\u5f8c\u306b\u3001pom.xml<\/code>\u3092\u4e0b\u8a18\u306e\u3088\u3046\u306b\u4fee\u6b63\u3057\u307e\u3059\u3002<\/p>\n<?xml version="1.0" encoding="UTF-8"?>\n<project xmlns="http:\/\/maven.apache.org\/POM\/4.0.0"\n xmlns:xsi="http:\/\/www.w3.org\/2001\/XMLSchema-instance"\n xsi:schemaLocation="http:\/\/maven.apache.org\/POM\/4.0.0 http:\/\/maven.apache.org\/xsd\/maven-4.0.0.xsd">\n <modelVersion>4.0.0<\/modelVersion>\n\n <groupId>com.example<\/groupId>\n <artifactId>lambda-hello-world<\/artifactId>\n <packaging>jar<\/packaging>\n <version>1.0<\/version>\n <name>lambda-hello-world<\/name>\n\n <properties>\n <project.build.sourceEncoding>UTF-8<\/project.build.sourceEncoding>\n <maven.compiler.source>1.8<\/maven.compiler.source>\n <maven.compiler.target>1.8<\/maven.compiler.target>\n <\/properties>\n\n <dependencies>\n <dependency>\n <groupId>com.amazonaws<\/groupId>\n <artifactId>aws-lambda-java-core<\/artifactId>\n <version>1.2.0<\/version>\n <\/dependency>\n <\/dependencies>\n\n <build>\n <plugins>\n <plugin>\n <groupId>org.apache.maven.plugins<\/groupId>\n <artifactId>maven-shade-plugin<\/artifactId>\n <version>3.2.1<\/version>\n <configuration>\n <createDependencyReducedPom>false<\/createDependencyReducedPom>\n <\/configuration>\n <executions>\n <execution>\n <phase>package<\/phase>\n <goals>\n <goal>shade<\/goal>\n <\/goals>\n <\/execution>\n <\/executions>\n <\/plugin>\n <\/plugins>\n <\/build>\n\n<\/project><\/code><\/pre>\n\u95a2\u6570\u3092\u30c7\u30d7\u30ed\u30a4\u3059\u308b<\/h3>\n
Hello.java<\/code>, Request.java<\/code>, pom.xml<\/code>\u306e\u4fee\u6b63\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001AWS Lambda\u306b\u30c7\u30d7\u30ed\u30a4\u3059\u308bJAR\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\u5148\u7a0b\u4f5c\u6210\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4e2d\u306e\u3001java-lambda<\/code>\u76f4\u4e0b\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n$ mvn package\n\n$ ls -l target\/*.jar\n-rw-r--r-- 1 daisakuhazui staff 10535 3 29 12:34 target\/lambda-hello-world-1.0.jar\n-rw-r--r-- 1 daisakuhazui staff 3164 3 29 12:34 target\/original-lambda-hello-world-1.0.jar<\/code><\/pre>\n\u4eca\u56de\u3001AWS Lambda\u306b\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u306e\u306flambda-hello-world-1.0.jar<\/code>\u306e\u65b9\u3067\u3059\u3002<\/p>\nAWS\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u30e9\u30f3\u30bf\u30a4\u30e0\u304cJava11\u306eLambda\u95a2\u6570\u3092\u4f5c\u6210\u3057\u3001\u95a2\u6570\u30d1\u30c3\u30b1\u30fc\u30b8<\/code>\u304b\u3089lambda-hello-world-1.0.jar<\/code>\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n\u95a2\u6570\u3092\u30c6\u30b9\u30c8\u3059\u308b<\/h3>\n
JAR\u30d5\u30a1\u30a4\u30eb\u304c\u6b63\u5e38\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3067\u304d\u305f\u3089\u95a2\u6570\u3092\u30c6\u30b9\u30c8\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n
\u3053\u308c\u307e\u3067\u3068\u540c\u69d8\u306b\u3001\u95a2\u6570\u306e\u8a73\u7d30\u753b\u9762\u53f3\u4e0a\u306e\u30c6\u30b9\u30c8\u30a4\u30d9\u30f3\u30c8\u306e\u8a2d\u5b9a<\/code>\u3092\u9078\u629e\u3057\u3001\u30c6\u30b9\u30c8\u30a4\u30d9\u30f3\u30c8\u3092\u4e0b\u8a18\u306e\u3088\u3046\u306b\u4fee\u6b63\u3057\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n{\n "firstName": "Daisaku",\n "lastName": "Hazui"\n}<\/code><\/pre>\n\u4fdd\u5b58\u3067\u304d\u305f\u3089\u30c6\u30b9\u30c8<\/code>\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u6210\u529f\u3057\u305f\u3089\u5b9f\u884c\u7d50\u679c\u306e\u30ed\u30b0\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\u4eca\u56de\u3082\u3001\u95a2\u6570\u306e\u5b9f\u884c\u7d50\u679c\u3068\u3057\u3066"Hello Daisaku Hazui!"<\/code>\u304c\u8fd4\u3063\u3066\u304d\u307e\u3059\u3002<\/p>\nAWS\u30b3\u30f3\u30bd\u30fc\u30eb\u4e0a\u3067\u30a4\u30f3\u30e9\u30a4\u30f3\u7de8\u96c6\u53ef\u80fd\u306a\u8a00\u8a9e<\/h2>\n
\u3053\u3053\u307e\u3067 .NET Core 2.1(C#\/PowerShell)<\/code>, Go 1.x<\/code>, Java 11<\/code>\u306b\u3064\u3044\u3066\u3054\u7d39\u4ecb\u3057\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n\u3053\u308c\u304b\u3089\u3054\u7d39\u4ecb\u3059\u308b Node.js<\/code>, Python<\/code>, Ruby<\/code>\u306b\u3064\u3044\u3066\u306f\u3001\u30ed\u30fc\u30ab\u30eb\u958b\u767a\u74b0\u5883\u3067\u95a2\u6570\u30b3\u30fc\u30c9\u3092\u7528\u610f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u305b\u3093\u3002AWS\u30b3\u30f3\u30bd\u30fc\u30eb\u4e0a\u3067Lambda\u95a2\u6570\u3092\u4f5c\u6210\u5f8c\u3001\u305d\u306e\u307e\u307e\u95a2\u6570\u30b3\u30fc\u30c9\u3092\u30a4\u30f3\u30e9\u30a4\u30f3\u7de8\u96c6\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u304b\u3089\u3067\u3059\u3002<\/p>\n\u52d5\u4f5c\u30c6\u30b9\u30c8\u306b\u3064\u3044\u3066\u306f\u3053\u308c\u307e\u3067\u3068\u540c\u69d8\u306b\u3001\u30c6\u30b9\u30c8\u30a4\u30d9\u30f3\u30c8\u306e\u8a2d\u5b9a<\/code>\u304b\u3089\u4ee5\u4e0b\u3092\u30a4\u30d9\u30f3\u30c8\u3068\u3057\u3066\u8a2d\u5b9a\u3057\u3066\u9802\u3051\u308c\u3070OK\u3067\u3059\u3002AWS\u30b3\u30f3\u30bd\u30fc\u30eb\u4e0a\u306e\u30c6\u30b9\u30c8<\/code>\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u95a2\u6570\u306e\u51fa\u529b\u7d50\u679c\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\nNode.js 12.x<\/h3>\n
AWS\u30b3\u30f3\u30bd\u30fc\u30eb\u3067Lambda\u95a2\u6570\u3092\u4f5c\u6210\u6642\u306b\u3001\u30e9\u30f3\u30bf\u30a4\u30e0<\/code>\u3067Node.js 12.x<\/code>\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\u95a2\u6570\u304c\u4f5c\u6210\u3067\u304d\u305f\u3089\u3001\u81ea\u52d5\u751f\u6210\u3055\u308c\u3066\u3044\u308bindex.js<\/code>\u3092\u4e0b\u8a18\u306e\u3088\u3046\u306b\u4fee\u6b63\u3057\u307e\u3059\u3002<\/p>\nexports.handler = async (event, context) => {\n return 'Hello ' + event.firstName + ' ' + event.lastName;\n};<\/code><\/pre>\nPython 3.8<\/h3>\n
AWS\u30b3\u30f3\u30bd\u30fc\u30eb\u3067Lambda\u95a2\u6570\u3092\u4f5c\u6210\u6642\u306b\u3001\u30e9\u30f3\u30bf\u30a4\u30e0<\/code>\u3067Python 3.8<\/code>\u3092\u9078\u629e\u3059\u308b\u3068\u3001lambda_function.py<\/code>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u81ea\u52d5\u751f\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\u4e0a\u8a18\u30d5\u30a1\u30a4\u30eb\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4fee\u6b63\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n
def lambda_handler(event, context):\n message = 'Hello {} {}!'.format(event['firstName'],\n event['lastName'])\n return message<\/code><\/pre>\nRuby 2.7<\/h3>\n
Ruby 2.7<\/code>\u3092\u30e9\u30f3\u30bf\u30a4\u30e0\u306b\u9078\u629e\u3057\u305f\u5834\u5408\u3082\u3001Lambda\u95a2\u6570\u3092\u30a4\u30f3\u30e9\u30a4\u30f3\u7de8\u96c6\u3059\u308b\u4e8b\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\nRuby\u306e\u5834\u5408\u3001lambda_function.rb<\/code>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u81ea\u52d5\u751f\u6210\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4fee\u6b63\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\nrequire 'json'\n\ndef lambda_handler(event:, context:)\n first_name = event["firstName"]\n last_name = event["lastName"]\n return "Hello #{first_name} #{last_name}!"\nend<\/code><\/pre>\n\u304a\u308f\u308a\u306b<\/h2>\n
\u4ee5\u4e0a\u3001AWS Lambda\u3067\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308b\u5168\u8a00\u8a9e\u306b\u3064\u3044\u3066\u3001\u7c21\u5358\u306a\u6587\u5b57\u5217\u3092\u8fd4\u3059\u95a2\u6570\u3092\u5b9f\u88c5\u3057\u3066\u3044\u304d\u307e\u3057\u305f\u3002<\/p>\n
\u53c2\u8003\u306b\u3057\u3066\u9802\u3051\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
AWS Lambda\u3067\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308b\u8a00\u8a9e 2020\u5e743\u670829\u65e5\u73fe\u5728\u3001AWS Lambda\u3067\u306f \u6700\u65b0\u306e\u30b5\u30dd\u30fc\u30c8\u5bfe\u8c61 \u3068\u3057\u3066\u4ee5\u4e0b\u306e\u8a00\u8a9e\u304c\u6319\u304c\u3063\u3066\u3044\u307e\u3059\u3002 .NET Core 2.1(C#\/PowerShell) Go 1.x Java 11 Node.js 12.x Python 3.8 Ruby 2.7 \u203b\u4e0a\u8a18\u306e\u3046\u3061\u3001AWS\u30b3\u30f3\u30bd\u30fc\u30eb\u4e0a\u3067\u76f4\u63a5\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3067\u304d\u308b\u306e\u306fNode.js, Python, […]<\/p>\n","protected":false},"author":9,"featured_media":684,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13,21],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/621"}],"collection":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/comments?post=621"}],"version-history":[{"count":1,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/621\/revisions"}],"predecessor-version":[{"id":1133,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/621\/revisions\/1133"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/media?parent=621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/categories?post=621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/tags?post=621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}