如何使用 Terraform 自动更新 aws_synthetics_canary 中的运行时版本?

问题描述 投票:0回答:1

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
amazon-web-services terraform amazon-cloudwatch amazon-cloudwatch-synthetics
1个回答
0
投票

运行时间似乎可以持续大约2年?

您可以将运行时设置为变量,并在应用管道时传递最新支持的运行时。 cloudwatch 文档有一个获取最新信息的模式https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html

© www.soinside.com 2019 - 2024. All rights reserved.