コンソールからだと見つけられないので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
}
]