1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

AWS Lambda Node.js Lambda関数内部で自身の関数名を取得する

Posted at

概要

  • Lambda関数内で自身の関数の名前を取得する方法をまとめる。

詳細

  • Lambda関数はNode.js 18を使用する。

方法

  1. 下記の様にLambda関数のコードを記載して、保存 → デプロイ → 実行してみる。

    index.mjs
    export const handler = async(event, context) => {
        console.log(context.functionName);
    }
    
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?