Skip to content

Commit bc7173b

Browse files
Add google_beyondcorp_security_gateway_application resource. (#13918) (#1002)
[upstream:dec1fdcb336fd61b8ae9d9b6be63a320ab9d6ead] Signed-off-by: Modular Magician <[email protected]>
1 parent fe5b7b2 commit bc7173b

File tree

2 files changed

+8
-8
lines changed
  • beyondcorp_security_gateway_application_basic
  • beyondcorp_security_gateway_application_vpc

2 files changed

+8
-8
lines changed

beyondcorp_security_gateway_application_basic/main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
resource "google_beyondcorp_security_gateway" "default" {
2-
security_gateway_id = "default-${local.name_suffix}"
2+
security_gateway_id = "default-sg-${local.name_suffix}"
33
display_name = "My Security Gateway resource"
44
hubs { region = "us-central1" }
55
}
66

7-
resource "google_beyondcorp_application" "example" {
8-
security_gateways_id = google_beyondcorp_security_gateway.default.security_gateway_id
9-
application_id = "google-${local.name_suffix}"
7+
resource "google_beyondcorp_security_gateway_application" "example" {
8+
security_gateway_id = google_beyondcorp_security_gateway.default.security_gateway_id
9+
application_id = "google-sga-${local.name_suffix}"
1010
endpoint_matchers {
1111
hostname = "google.com"
1212
}

beyondcorp_security_gateway_application_vpc/main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
data "google_project" "project" {}
22

33
resource "google_beyondcorp_security_gateway" "default" {
4-
security_gateway_id = "default-${local.name_suffix}"
4+
security_gateway_id = "default-sg-${local.name_suffix}"
55
display_name = "My Security Gateway resource"
66
hubs { region = "us-central1" }
77
}
88

9-
resource "google_beyondcorp_application" "example" {
10-
security_gateways_id = google_beyondcorp_security_gateway.default.security_gateway_id
11-
application_id = "my-vm-service-${local.name_suffix}"
9+
resource "google_beyondcorp_security_gateway_application" "example" {
10+
security_gateway_id = google_beyondcorp_security_gateway.default.security_gateway_id
11+
application_id = "my-vm-service2-${local.name_suffix}"
1212
endpoint_matchers {
1313
hostname = "my-vm-service.com"
1414
}

0 commit comments

Comments
 (0)