我在 Terraform v 0.11.8 上遇到了一个奇怪的问题。我们正在尝试关闭 ACR 的端口,并使其仅在网络内可用以及应用程序服务访问它。
terraform IP_restriction 规则文档显示了类似的内容。
network_rule_set {
default_action = "Deny"
**ip_rule = [{
action = "Allow"
ip_range = "x.x.x.x"
},
{
action = "Allow"
ip_range = "y.y.y.y"
}...]**
}
Run Code Online (Sandbox Code Playgroud)
我的变量/本地中有 IP 列表
variable "myIps" {
type="list"
default="[x.x.x.x, y.y.y.y, z.z.z.z, ....]"
}
Run Code Online (Sandbox Code Playgroud)
如何将元素列表 [xxxx] 转换为具有 [{action = "Allow" ip_range = "xxxx"}] 的对象列表。第一个属性操作=“允许”始终是静态的。我必须将 IP 从变量传递到对象属性中。
我尝试使用正则表达式模式
variable "test2" {
type="string"
default = "{action=\"Allow\", ip_range=\"%s\"}"
}
Run Code Online (Sandbox Code Playgroud)
但这返回字符串而不是对象列表。
谢谢!
我正在尝试深入研究Angular UI-Grid的API,以确保我为我的单元头实现Bootstrap Popover.我一直在看,但找不到任何解决方案.
像这样的东西 - plnkr.co/edit/UJJttN
我也试图让popover只发生在标题单元格中.有什么建议?