-
Notifications
You must be signed in to change notification settings - Fork 286
feat(VPC Flow Logs): Prepare VPC Flow Logs for inclusion in C.G.C. documentation #764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
glasnt
merged 18 commits into
terraform-google-modules:main
from
alkobi-google:bug-380087742
Dec 19, 2024
+284
−0
Merged
Changes from 7 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
e4b86b9
Prepare VPC Flow Logs for inclusion in C.G.C. documentation
alkobi-google 01b0e7a
Prepare VPC Flow Logs for inclusion in C.G.C. documentation
alkobi-google e9acaf0
Prepare VPC Flow Logs for inclusion in C.G.C. documentation
alkobi-google 5ecce3b
Prepare VPC Flow Logs for inclusion in C.G.C. documentation
alkobi-google 5f5e836
Merge branch 'terraform-google-modules:main' into bug-380087742
alkobi-google 8fb10b2
Fix description
alkobi-google 1440dcd
Merge branch 'main' into bug-380087742
alkobi-google 04a8fc1
Fix code review comments:
alkobi-google c9f7d94
Fix all of the demo files to create every resource needed for the vpc…
alkobi-google 44a4af9
Fix lint errors
alkobi-google d59e96e
Merge branch 'main' into bug-380087742
glasnt d04e0de
Fix lint error.
alkobi-google 65aa32a
Change region tags to differentiate between the
alkobi-google c8603f6
Fix lint errors
alkobi-google 1830820
Merge branch 'main' into bug-380087742
glasnt 14f8fcb
Merge branch 'main' into bug-380087742
alkobi-google 1987134
Merge branch 'main' into bug-380087742
alkobi-google db65150
Merge branch 'main' into bug-380087742
glasnt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
network_management/vpc_flow_logs_config/interconnect_attachment_basic/main.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| /** | ||
| * Copyright 2024 Google LLC | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| # [START vpcflowlogs_create_basic_vpc_flow_logs_config_over_interconnect_attachment] | ||
| # google_network_management_vpc_flow_logs_config.vpc_fl_config will be created | ||
alkobi-google marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| resource "google_network_management_vpc_flow_logs_config" "vpc_fl_config" { | ||
| interconnect_attachment = "projects/example_project/regions/us-central1/interconnectAttachments/example_interconnect" | ||
alkobi-google marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| location = "global" | ||
| project = "example_project" | ||
alkobi-google marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| provider = google-beta | ||
alkobi-google marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| vpc_flow_logs_config_id = "example-config-id" | ||
| } | ||
| # [END vpcflowlogs_create_basic_vpc_flow_logs_config_over_interconnect_attachment] | ||
31 changes: 31 additions & 0 deletions
31
network_management/vpc_flow_logs_config/interconnect_attachment_full/main.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| /** | ||
| * Copyright 2024 Google LLC | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| # [START vpcflowlogs_create_vpc_flow_logs_config_over_interconnect_attachment_with_parameters] | ||
| # google_network_management_vpc_flow_logs_config.vpc_fl_config will be created | ||
| resource "google_network_management_vpc_flow_logs_config" "vpc_fl_config" { | ||
| aggregation_interval = "INTERVAL_10_MIN" | ||
| description = "VPC Flow Logs over an Interconnect Attachment." | ||
| flow_sampling = 0.7 | ||
| interconnect_attachment = "projects/example_project/regions/us-central1/interconnectAttachments/example_interconnect" | ||
| location = "global" | ||
| metadata = "INCLUDE_ALL_METADATA" | ||
| project = "example_project" | ||
| provider = google-beta | ||
| state = "ENABLED" | ||
| vpc_flow_logs_config_id = "example-config-id" | ||
| } | ||
| # [END vpcflowlogs_create_vpc_flow_logs_config_over_interconnect_attachment_with_parameters] |
27 changes: 27 additions & 0 deletions
27
network_management/vpc_flow_logs_config/vpn_tunnel_basic/main.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| /** | ||
| * Copyright 2024 Google LLC | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| # [START vpcflowlogs_create_basic_vpc_flow_logs_config_over_vpn_tunnel] | ||
|
|
||
| # google_network_management_vpc_flow_logs_config.vpc_fl_config will be created | ||
| resource "google_network_management_vpc_flow_logs_config" "vpc_fl_config" { | ||
| location = "global" | ||
| project = "example_project" | ||
| provider = google-beta | ||
| vpc_flow_logs_config_id = "example-config-id" | ||
| vpn_tunnel = "projects/example_project/regions/us-central1/vpnTunnels/example_vpn_tunnel" | ||
| } | ||
| # [END vpcflowlogs_create_basic_vpc_flow_logs_config_over_vpn_tunnel] |
32 changes: 32 additions & 0 deletions
32
network_management/vpc_flow_logs_config/vpn_tunnel_full/main.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| /** | ||
| * Copyright 2024 Google LLC | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| # [START vpcflowlogs_create_vpc_flow_logs_config_over_vpn_tunnel_with_parameters] | ||
|
|
||
| # google_network_management_vpc_flow_logs_config.vpc_fl_config will be created | ||
| resource "google_network_management_vpc_flow_logs_config" "vpc_fl_config" { | ||
| aggregation_interval = "INTERVAL_10_MIN" | ||
| description = "VPC Flow Logs over a VPN Gateway." | ||
| flow_sampling = 0.7 | ||
| location = "global" | ||
| metadata = "INCLUDE_ALL_METADATA" | ||
| project = "example_project" | ||
| provider = google-beta | ||
| state = "ENABLED" | ||
| vpc_flow_logs_config_id = "example-config-id" | ||
| vpn_tunnel = "projects/example_project/regions/us-central1/vpnTunnels/example_vpn_tunnel" | ||
| } | ||
| # [END vpcflowlogs_create_vpc_flow_logs_config_over_vpn_tunnel_with_parameters] |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.