File tree Expand file tree Collapse file tree 5 files changed +111
-0
lines changed
examples/network_service_tiers Expand file tree Collapse file tree 5 files changed +111
-0
lines changed Original file line number Diff line number Diff line change 1+ # Network Service Tier
2+
3+ This example configures the Network Service Tier for a project.
4+
5+ <!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
6+ ## Inputs
7+
8+ | Name | Description | Type | Default | Required |
9+ | ------| -------------| ------| ---------| :--------:|
10+ | project\_ id | The project ID to set the Network Service Tier in | ` any ` | n/a | yes |
11+
12+ ## Outputs
13+
14+ | Name | Description |
15+ | ------| -------------|
16+ | project\_ id | Google Cloud project ID |
17+
18+ <!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
19+
Original file line number Diff line number Diff line change 1+ /* *
2+ * Copyright 2019 Google LLC
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
17+ provider "null" {
18+ version = " ~> 2.1"
19+ }
20+
21+ provider "google" {
22+ version = " ~> 3.45.0"
23+ }
24+
25+ # [START networkservicetiers_project_tier_set]
26+ resource "google_compute_project_default_network_tier" "project-tier" {
27+ project = var. project_id # Replace this with your project ID in quotes
28+ network_tier = " STANDARD"
29+ }
30+ # [END networkservicetiers_project_tier_set]
31+
Original file line number Diff line number Diff line change 1+ /* *
2+ * Copyright 2019 Google LLC
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
17+ output "project_id" {
18+ value = google_compute_project_default_network_tier. project-tier . project
19+ description = " Google Cloud project ID"
20+ }
21+
Original file line number Diff line number Diff line change 1+ /* *
2+ * Copyright 2019 Google LLC
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
17+ variable "project_id" {
18+ description = " The project ID to set the Network Service Tier in"
19+ }
20+
Original file line number Diff line number Diff line change 1+ /* *
2+ * Copyright 2019 Google LLC
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
17+ terraform {
18+ required_version = " >=0.12.6"
19+ }
20+
You can’t perform that action at this time.
0 commit comments