AWSTemplateFormatVersion: "2010-09-09" Transform: 'AWS::Serverless-2016-10-31' Resources: App: Type: 'AWS::Serverless::Function' Properties: Handler: lambda-go-sample # ファイル名 Runtime: go1.x CodeUri: build # ビルドファイル設置ディレクトリ Timeout: 1 GOARCH=amd64 GOOS=linux go build -o build/lambda-go-sample aws cloudformation package \ --template-file template.yml \ --s3-bucket [パッケージアップロード先s3バケット] \ --s3-prefix