Cannot update canary using 'aws-sdk'

0

Hi all,
I'm trying to update canary to the most recent '.zip' archive from S3 bucket with code(using sdk):
let synthetics = new AWS.Synthetics();
let params = {
Name: "canary-name",
Code: {
Handler: 'canary.handler',
S3Bucket: 'bucket-name',
S3Key: 'bucket-key',
S3Version: "version-id"
}
};
let response = await synthetics.updateCanary(params).promise();
After invocation, response is empty object({}), no errors occured
I use S3 bucket, because '.zip' archive contains some additional node libraries
Also how could I set up the flow of updating code in repo and automatically update canary?
As for now I guess, I just can create canary single time and have no way to continuously update canary code
Thanks to all for any comments!

質問済み 3年前306ビュー
1回答
0

I've already solved the issue. Maybe it'll be helpful for somebody

  1. When using aws-sdk - "S3Bucket" in params object need to be added without "s3://"
  2. Use getCanary() method to get canary object, which in my case contains validation errors
回答済み 3年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ