$ serverless.yml
service: aws-nodejs # NOTE: update this with your service name provider: name: aws runtime: nodejs8.10 region: ap-northeast-1 stage: ${opt:stage, 'development'} ... functions: webApp: handler: 'handler.main' #name を指定しない ... WriteS3: handler: 'hoge.handle' ... resources: Resources: ...
このように定義した時、lambda function の名前や、Arn を取得したい場合、Resources blockに定義したわけでは無いため、 `{Ref: webApp}` や `{ "Fn::GetAtt": ["webApp", "Arn"] }` では取得できません。
webApp の場合は、 WebAppLambdaFunction とすると、参照できます。
WriteS3 の場合は、WriteS3LambdaFunction となります。