back
terraform {
required_providers {
fortios = ">= 1.11.0"
}
}
top
module "fortios_router_keychain" {
source = "./modules/fortios/r/fortios_router_keychain"
# dynamic_sort_subtable - (optional) is a type of string
dynamic_sort_subtable = null
# name - (required) is a type of string
name = null
key = [{
accept_lifetime = null
id = null
key_string = null
send_lifetime = null
}]
}
top
variable "dynamic_sort_subtable" {
description = "(optional)"
type = string
default = null
}
variable "name" {
description = "(required)"
type = string
}
variable "key" {
description = "nested block: NestingList, min items: 0, max items: 0"
type = set(object(
{
accept_lifetime = string
id = number
key_string = string
send_lifetime = string
}
))
default = []
}
top
resource "fortios_router_keychain" "this" {
# dynamic_sort_subtable - (optional) is a type of string
dynamic_sort_subtable = var.dynamic_sort_subtable
# name - (required) is a type of string
name = var.name
dynamic "key" {
for_each = var.key
content {
# accept_lifetime - (optional) is a type of string
accept_lifetime = key.value["accept_lifetime"]
# id - (optional) is a type of number
id = key.value["id"]
# key_string - (optional) is a type of string
key_string = key.value["key_string"]
# send_lifetime - (optional) is a type of string
send_lifetime = key.value["send_lifetime"]
}
}
}
top
output "id" {
description = "returns a string"
value = fortios_router_keychain.this.id
}
output "this" {
value = fortios_router_keychain.this
}
top