0
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 Synthetics Canaryで実際に動くlambdaのArnを調べる

Last updated at Posted at 2022-08-03

コンソールからだと見つけられないのでAWS CLIからjqで調べる。
フィルターは(それほど長いわけではないが) 別ファイルにして実行

$ aws synthetics describe-canaries | jq -f canary-lambda.txt`
[
  {
    "Name": "example-canary",
    "Function": "arn:aws:lambda:ap-northeast-1:xxxx:function:example-canary-xxxxx:1",
    "Role": "arn:aws:iam::xxxx:role/example-canary-ExecutionRole",
    "Code": {
      "SourceLocationArn": "arn:aws:lambda:ap-northeast-1:xxxx:layer:example-canary-xxxx:1",
      "Handler": "index.handler"
    },
    "RuntimeVersion": "syn-nodejs-puppeteer-3.4"
  }
]
canary-lambda.txt
[
  .Canaries[] 
  |
  { 
    Name: .Name,
    RuntimeVersion: .RuntimeVersion,
    Function: .EngineArn,
    Role: .ExecutionRoleArn,
    Code: .Code
  }
]
0
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
0
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?