terraform - 如何使用 TestCheckResourceAttr 在验收测试中检查 TypeMap?
问题描述
在我的 tf 状态文件中,TypeMap 变量看起来像任何其他属性:
"attributes": {
"foo": {
"aaa": "12345",
"bbb": "23456",
},
那是我跑步时说的
resource.TestCheckResourceAttr(fullTopicResourceLabel, "foo", ...),
它说
_label: Attribute 'foo' not found
解决方案
推荐阅读
- android - Android Studio:string.xml 编辑器中是否有“换行和插入”功能?
- mysql - 选择具有等于目标行的任何值的所有行
- html - 如何根据加载时的窗口大小以 8 角关闭侧边栏?
- ios - Xcode:从命令行使用旧的构建系统
- database - AWS DynamoDB - 如何设计一个可以有效检索具有特定值/状态的大量项目的表/索引
- reporting-services - ssrs iif 表达式报告
- python - “连接意外关闭”没有错误类型。怎么抓?
- django - 如何按嵌套对象整数字段排序
- pycharm - 如何在一个类里面实际使用 PyCharm 导入?
- exe - Windows Server 2019 支持的操作系统 GUID 是什么?