Skip to content

Commit

Permalink
Fix test example
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Prete committed Feb 5, 2024
1 parent bb5ece4 commit 6b71083
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 0 additions & 2 deletions mmv1/products/networksecurity/SecurityProfileGroup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ examples:
name: 'network_security_security_profile_group_basic'
primary_resource_id: 'default'
min_version: beta
vars:
resource_name: 'my-security-profile-group'
test_env_vars:
org_id: :ORG_ID
parameters:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
resource "google_network_security_security_profile_group" "<%= ctx[:primary_resource_id] %>" {
provider = google-beta
name = "<%= ctx[:vars]['resource_name'] %>"
name = "my-security-profile-group"
parent = "organizations/<%= ctx[:test_env_vars]['org_id'] %>"
description = "my description"
threat_prevention_profile = "my-security-profile"
threat_prevention_profile = google_network_security_security_profile.security_profile.id

labels = {
foo = "bar"
}
}

resource "google_network_security_security_profile" "security_profile" {
provider = google-beta
name = "my-security-profile"
type = "THREAT_PREVENTION"
parent = "organizations/<%= ctx[:test_env_vars]['org_id'] %>"
location = "global"
}

0 comments on commit 6b71083

Please sign in to comment.