gpt4 book ai didi

terraform 错误 - 未知筛选键 : MSRC_SEVERITY

转载 作者:行者123 更新时间:2023-12-04 07:39:04 28 4
gpt4 key购买 nike

错误信息


aws_ssm_patch_baseline.baseline: Modifying... [id=pb-041e9a4a9c8723c10]

│ Error: error updating SSM Patch Baseline (pb-041e9a4a9c8723c10): ValidationException: Unknown Filter Key: MSRC_SEVERITY
│ status code: 400, request id: b55aa4df-b782-4e40-a3a7-5637ac903bdd

│ with aws_ssm_patch_baseline.baseline,
│ on ssm.tf line 1, in resource "aws_ssm_patch_baseline" "baseline":
│ 1: resource "aws_ssm_patch_baseline" "baseline" {```



地形文件内容

patch_filter {
key = "MSRC_SEVERITY"
values = var.patch_severity
}

补丁基准的操作系统是 AMAZON_LINUX
对于控制台,可以在下拉字段中选择类似的选项
enter image description here

最佳答案

不同的操作系统支持不同的过滤器属性。不幸的是,AWS 似乎没有确切地告诉您哪些操作系统支持哪些属性,但 the API docs list the valid values属性,然后您可以运行以下命令来检查它们是否对该操作系统有效以及哪些选项可用:

$ aws ssm describe-patch-properties --operating-system AMAZON_LINUX --property MSRC_SEVERITY

An error occurred (ValidationException) when calling the DescribePatchProperties operation: Property MSRC_SEVERITY is not supported for operating system AMAZON_LINUX

$ aws ssm describe-patch-properties --operating-system AMAZON_LINUX --property SEVERITY
{
"Properties": [
{
"Name": "Critical"
},
{
"Name": "Important"
},
{
"Name": "Low"
},
{
"Name": "Medium"
}
]
}
供引用, MSRC is the Microsoft Security Response Center所以这仅适用于 Windows 系统是有道理的。

关于terraform 错误 - 未知筛选键 : MSRC_SEVERITY,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67581825/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com