-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Copy pathterraform.yaml
124 lines (120 loc) · 5.93 KB
/
terraform.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# Copyright 2017 Google Inc.
# 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.
--- !ruby/object:Provider::Terraform::Config
overrides: !ruby/object:Overrides::ResourceOverrides
AlertPolicy: !ruby/object:Overrides::Terraform::ResourceOverride
id_format: "{{name}}"
import_format: ["{{name}}"]
mutex: alertPolicy/{{project}}
examples:
- !ruby/object:Provider::Terraform::Examples
# skipping tests because the API is full of race conditions
skip_test: true
name: "monitoring_alert_policy_basic"
primary_resource_id: "alert_policy"
vars:
alert_policy_display_name: "My Alert Policy"
custom_code: !ruby/object:Provider::Terraform::CustomCode
custom_import: templates/terraform/custom_import/self_link_as_name.erb
post_create: templates/terraform/post_create/set_computed_name.erb
extra_schema_entry: templates/terraform/extra_schema_entry/alert_policy.erb
Group: !ruby/object:Overrides::Terraform::ResourceOverride
id_format: "{{name}}"
import_format: ["{{name}}"]
mutex: stackdriver/groups/{{project}}
examples:
- !ruby/object:Provider::Terraform::Examples
name: "monitoring_group_basic"
primary_resource_id: "basic"
vars:
display_name: "MonitoringGroup"
- !ruby/object:Provider::Terraform::Examples
name: "monitoring_group_subgroup"
primary_resource_id: "subgroup"
vars:
display_name: "MonitoringSubGroup"
display_name2: "MonitoringSubGroup"
properties:
parentName: !ruby/object:Overrides::Terraform::PropertyOverride
diff_suppress_func: 'compareSelfLinkRelativePaths'
custom_code: !ruby/object:Provider::Terraform::CustomCode
custom_import: templates/terraform/custom_import/self_link_as_name.erb
post_create: templates/terraform/post_create/set_computed_name.erb
NotificationChannel: !ruby/object:Overrides::Terraform::ResourceOverride
id_format: "{{name}}"
import_format: ["{{name}}"]
mutex: stackdriver/notifications/{{project}}
examples:
- !ruby/object:Provider::Terraform::Examples
name: "notification_channel_basic"
primary_resource_id: "basic"
vars:
display_name: "Test Notification Channel"
custom_code: !ruby/object:Provider::Terraform::CustomCode
custom_import: templates/terraform/custom_import/self_link_as_name.erb
post_create: templates/terraform/post_create/set_computed_name.erb
properties:
labels: !ruby/object:Overrides::Terraform::PropertyOverride
description: |
Configuration fields that define the channel and its behavior. The
permissible and required labels are specified in the
NotificationChannelDescriptor corresponding to the type field.
**Note**: Some NotificationChannelDescriptor labels are
sensitive and the API will return an partially-obfuscated value.
For example, for `"type": "slack"` channels, an `auth_token`
label with value "SECRET" will be obfuscated as "**CRET". In order
to avoid a diff, Terraform will use the state value if it appears
that the obfuscated value matches the state value in
length/unobfuscated characters. However, Terraform will not detect a
a diff if the obfuscated portion of the value was changed outside of
Terraform.
custom_flatten: "templates/terraform/custom_flatten/monitoring_obfuscated_labels.go.erb"
UptimeCheckConfig: !ruby/object:Overrides::Terraform::ResourceOverride
id_format: "{{name}}"
import_format: ["{{name}}"]
examples:
- !ruby/object:Provider::Terraform::Examples
name: "uptime_check_config_http"
primary_resource_id: "http"
vars:
display_name: "http-uptime-check"
test_env_vars:
project_id: :PROJECT_NAME
- !ruby/object:Provider::Terraform::Examples
name: "uptime_check_tcp"
primary_resource_id: "tcp_group"
vars:
display_name: "tcp-uptime-check"
group_display_name: "uptime-check-group"
custom_code: !ruby/object:Provider::Terraform::CustomCode
custom_import: templates/terraform/custom_import/self_link_as_name.erb
decoder: 'templates/terraform/decoders/monitoring_uptime_check_internal.go.erb'
extra_schema_entry: 'templates/terraform/extra_schema_entry/monitoring_uptime_check_config_internal.go.erb'
post_create: templates/terraform/post_create/set_computed_name.erb
properties:
id: !ruby/object:Overrides::Terraform::PropertyOverride
name: uptimeCheckId
custom_flatten: "templates/terraform/custom_flatten/id_from_name.erb"
httpCheck.authInfo.password: !ruby/object:Overrides::Terraform::PropertyOverride
sensitive: true
custom_flatten: "templates/terraform/custom_flatten/uptime_check_http_password.erb"
httpCheck.port: !ruby/object:Overrides::Terraform::PropertyOverride
default_from_api: true
resourceGroup.groupId: !ruby/object:Overrides::Terraform::PropertyOverride
custom_expand: "templates/terraform/custom_expand/resource_from_self_link.go.erb"
custom_flatten: "templates/terraform/custom_flatten/group_id_to_name.erb"
files: !ruby/object:Provider::Config::Files
# These files have templating (ERB) code that will be run.
# This is usually to add licensing info, autogeneration notices, etc.
compile:
<%= lines(indent(compile('provider/terraform/product~compile.yaml'), 4)) -%>