-
Notifications
You must be signed in to change notification settings - Fork 1
/
metadata.display.yaml
185 lines (184 loc) · 7.86 KB
/
metadata.display.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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
# Copyright 2023 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.
apiVersion: blueprints.cloud.google.com/v1alpha1
kind: BlueprintMetadata
metadata:
name: terraform-google-canonical-mp-display
annotations:
config.kubernetes.io/local-config: "true"
spec:
info:
title: terraform-google-canonical-mp
source:
repo: https://github.com/g-awmalik/terraform-google-canonical-mp
sourceType: git
ui:
input:
variables:
boot_disk_size:
name: boot_disk_size
title: Boot disk size in GB
tooltip: Persistent disk performance is tied to the size of the persistent disk volume. You are charged for the actual amount of provisioned disk space.
min: 20
max: 10000
section: boot_disk
xGoogleProperty:
type: ET_GCE_DISK_SIZE
gceDiskSize:
diskTypeVariable: boot_disk_type
boot_disk_type:
name: boot_disk_type
title: Boot disk type
section: boot_disk
xGoogleProperty:
type: ET_GCE_DISK_TYPE
zoneProperty: zone
enable_https:
name: enable_https
title: Enable Https
enable_logging:
name: enable_logging
title: Enable Stackdriver Logging
tooltip: Stackdriver Logging allows you to store, search, analyze, monitor, and alert on log data and events. <a href="https://cloud.google.com/logging/">Learn more</a>
section: stackdriver
enable_monitoring:
name: enable_monitoring
title: Enable Stackdriver Monitoring
tooltip: Stackdriver Monitoring provides visibility into the performance, uptime, and overall health of cloud-powered applications. <a href="https://cloud.google.com/monitoring/">Learn more</a>
section: stackdriver
enable_tcp_80:
name: enable_tcp_80
title: Allow HTTP traffic from the Internet
section: networking
xGoogleProperty:
type: ET_GCE_FIREWALL
gceFirewall:
networkVariable: networks
enable_tcp_443:
name: enable_tcp_443
title: Allow HTTPS traffic from the Internet
section: networking
xGoogleProperty:
type: ET_GCE_FIREWALL
gceFirewall:
networkVariable: networks
external_ips:
name: external_ips
title: External IP
tooltip: An external IP address associated with this instance. Selecting "None" will result in the instance having no external internet access. <a href="https://cloud.google.com/compute/docs/configure-instance-ip-addresses">Learn more</a>
minItems: 1
maxItems: 8
section: networking
xGoogleProperty:
type: ET_GCE_EXTERNAL_IP
gceExternalIp:
networkVariable: networks
type: IP_EPHEMERAL
goog_cm_deployment_name:
name: goog_cm_deployment_name
title: Goog Cm Deployment Name
install_phpmyadmin:
name: install_phpmyadmin
title: Install phpMyAdmin
machine_type:
name: machine_type
title: Machine type
xGoogleProperty:
type: ET_GCE_MACHINE_TYPE
zoneProperty: zone
networks:
name: networks
title: Network name
minItems: 1
maxItems: 8
section: networking
xGoogleProperty:
type: ET_GCE_NETWORK
gceNetwork:
allowSharedVpcs: true
machineTypeVariable: machine_type
project_id:
name: project_id
title: Project Id
invisible: true
source_image:
name: source_image
title: Source Image
invisible: true
sub_networks:
name: sub_networks
title: Subnetwork name
minItems: 1
maxItems: 8
section: networking
xGoogleProperty:
type: ET_GCE_SUBNETWORK
zoneProperty: zone
gceSubnetwork:
networkVariable: networks
tcp_80_ip_source_ranges:
name: tcp_80_ip_source_ranges
title: Source IP ranges for HTTP traffic
tooltip: Traffic is only allowed from sources within these IP address ranges. Use CIDR notation when entering ranges. <a href="https://cloud.google.com/compute/docs/networking#firewalls">Learn more</a>
placeholder: 0.0.0.0/0, 192.169.0.2/24
section: networking
xGoogleProperty:
type: ET_GCE_FIREWALL_RANGE
gceFirewallRange:
firewallVariable: enable_tcp_80
tcp_443_ip_source_ranges:
name: tcp_443_ip_source_ranges
title: Source IP ranges for HTTPS traffic
tooltip: Traffic is only allowed from sources within these IP address ranges. Use CIDR notation when entering ranges. <a href="https://cloud.google.com/compute/docs/networking#firewalls">Learn more</a>
placeholder: 0.0.0.0/0, 192.169.0.2/24
section: networking
xGoogleProperty:
type: ET_GCE_FIREWALL_RANGE
gceFirewallRange:
firewallVariable: enable_tcp_443
wp_admin_email:
name: wp_admin_email
title: Wp Admin Email
regexValidation: ^[a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.-]+@[a-zA-Z0-9](?:[a-zA-Z0-9]?[.-]?[a-zA-Z0-9]+)+[[a-zA-Z0-9]{1}$
xGoogleProperty:
type: ET_EMAIL_ADDRESS
zone:
name: zone
title: Zone
xGoogleProperty:
type: ET_GCE_ZONE
sections:
- name: boot_disk
title: Boot Disk
tooltip: Each instance requires a disk to boot from.
- name: networking
title: Networking
- name: stackdriver
title: Stackdriver
subtext: Monitoring and management for services, containers, applications, and infrastructure
runtime:
outputMessage: Deployment can take several minutes to complete.
suggestedActions:
- heading: No external IP configured
description: "The VM instance has been configured with no external IP or internet access. Connecting \nto it directly may not be possible. Consider using a <a href=\"https://cloud.google.com/compute/docs/instances/connecting-advanced#bastion_host\">bastion host</a> \nto access this VM."
showIf: '!outputs.has_external_ip'
- heading: Access the phpMyAdmin web interface
description: Visit <a href="http://outputs.instance_self_link/phpmyadmin">http://outputs.instance_self_link/phpmyadmin</a>
showIf: variables.install_phpmyadmin
- heading: Change the temporary passwords
description: For additional security, it is recommended that you change the passwords.
- heading: Open HTTPS traffic
description: "'This firewall rule is not enabled. To allow specific network traffic from the Internet, \ncreate a firewall rule to open HTTPS traffic for target tag \"variables.name-deployment\". \n<a href=\"https://cloud.google.com/compute/docs/networking\">Learn more</a><br> If you are \nusing Google Cloud SDK, type the following command in the terminal:'"
snippet: "gcloud --project=variables.project_id compute firewall-rules create \"variables.name-tcp-443\" \n--network outputs.instance_network \n--allow tcp:443 \n--target-tags \"variables.name-deployment\""
showIf: '!variables.enableTcp443'