runtimeVersion在aws_synthetics_canary中被反复弃用,并且总是需要每次更新运行时版本,有没有办法自动化这个过程?
示例:
resource "aws_synthetics_canary" "canary" {
name = "${var.name}"
handler = "up.handler"
runtime_version = "syn-nodejs-puppeteer-6.0" # I want to automate this part
运行时间似乎可以持续大约2年?
您可以将运行时设置为变量,并在应用管道时传递最新支持的运行时。 cloudwatch 文档有一个获取最新信息的模式https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html