Skip to content

Commit

Permalink
Add advanced example
Browse files Browse the repository at this point in the history
  • Loading branch information
vladhanzha committed Oct 15, 2024
1 parent 6d6a3f5 commit 0c09b08
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions examples/location_contexts.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,28 @@ resource "cloudconnexa_location_context" "this" {
allowed = false
}
}

#Advanced
resource "cloudconnexa_location_context" "this" {
name = "Location Context Policy"
description = "Description for Location Context Policy"
user_groups_ids = values(cloudconnexa_user_group.this)[*].id
ip_policy {
allowed = true
ips {
ip = "10.10.0.0/16"
description = "Test subnet"
}
ips {
ip = "10.20.0.0/16"
description = "Test subnet 2"
}
}
country_policy {
allowed = true
countries = ["US", "GB"]
}
default_policy {
allowed = false
}
}

0 comments on commit 0c09b08

Please sign in to comment.