added stack_type field
This commit is contained in:
parent
4b59a8ed34
commit
17707da60a
|
@ -82,6 +82,7 @@ module "peering" {
|
|||
| [peer_create_peering](variables.tf#L22) | Create the peering on the remote side. If false, only the peering from this network to the remote network is created. | <code>bool</code> | | <code>true</code> |
|
||||
| [prefix](variables.tf#L33) | Optional name prefix for the network peerings. | <code>string</code> | | <code>null</code> |
|
||||
| [routes_config](variables.tf#L43) | Control import/export for local and remote peer. Remote configuration is only used when creating remote peering. | <code title="object({ local = optional(object({ export = optional(bool, true) import = optional(bool, true) public_export = optional(bool) public_import = optional(bool) }), {}) peer = optional(object({ export = optional(bool, true) import = optional(bool, true) public_export = optional(bool) public_import = optional(bool) }), {}) })">object({…})</code> | | <code>{}</code> |
|
||||
| [stack_type](variables.tf#L63) | IP version(s) of traffic and routes that are allowed to be imported or exported between peer networks. Possible values: IPV4_ONLY, IPV4_IPV6 | <code>string</code> | | <code>"IPV4_ONLY"</code> |
|
||||
|
||||
## Outputs
|
||||
|
||||
|
|
|
@ -36,6 +36,7 @@ resource "google_compute_network_peering" "local_network_peering" {
|
|||
import_subnet_routes_with_public_ip = try(
|
||||
var.routes_config.local.public_import, null
|
||||
)
|
||||
stack_type = var.stack_type
|
||||
}
|
||||
|
||||
resource "google_compute_network_peering" "peer_network_peering" {
|
||||
|
@ -55,5 +56,6 @@ resource "google_compute_network_peering" "peer_network_peering" {
|
|||
import_subnet_routes_with_public_ip = try(
|
||||
var.routes_config.peer.public_import, null
|
||||
)
|
||||
stack_type = var.stack_type
|
||||
depends_on = [google_compute_network_peering.local_network_peering]
|
||||
}
|
||||
|
|
|
@ -59,3 +59,9 @@ variable "routes_config" {
|
|||
nullable = false
|
||||
default = {}
|
||||
}
|
||||
|
||||
variable "stack_type" {
|
||||
description = "IP version(s) of traffic and routes that are allowed to be imported or exported between peer networks. Possible values: IPV4_ONLY, IPV4_IPV6"
|
||||
type = string
|
||||
default = "IPV4_ONLY"
|
||||
}
|
Loading…
Reference in New Issue