Skip to content

Commit

Permalink
adding resource group to vnis
Browse files Browse the repository at this point in the history
  • Loading branch information
fshuva committed Oct 22, 2024
1 parent e403f8d commit 72ab9d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vpc.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ resource "ibm_is_virtual_network_interface" "vni-active" {
auto_delete = false
enable_infrastructure_nat = true
security_groups = [data.ibm_is_security_group.fgt_security_group.id]
resource_group = data.ibm_resource_group.rg.id

primary_ip {
auto_delete = false
address = each.value.ip
Expand All @@ -78,6 +80,8 @@ resource "ibm_is_virtual_network_interface" "vni-passive" {
allow_ip_spoofing = false
auto_delete = false
enable_infrastructure_nat = true
resource_group = data.ibm_resource_group.rg.id

primary_ip {
auto_delete = false
address = each.value.ip
Expand Down

0 comments on commit 72ab9d7

Please sign in to comment.