You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/compute_disk_snapshot/metadata.yaml
+23-18Lines changed: 23 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -80,14 +80,6 @@ spec:
80
80
location: examples/compute_instance/tags
81
81
interfaces:
82
82
variables:
83
-
- name: disks
84
-
description: List of self_links persistent disks to attach the snapshot policy to (ie. projects/project_id/disks/diskname/zones/zone_name)
85
-
varType: list(string)
86
-
defaultValue: []
87
-
- name: module_depends_on
88
-
description: List of modules or resources this module depends on
89
-
varType: list(any)
90
-
defaultValue: []
91
83
- name: name
92
84
description: Name of the resource policy to create
93
85
varType: string
@@ -100,16 +92,6 @@ spec:
100
92
description: Region where resource policy resides
101
93
varType: string
102
94
required: true
103
-
- name: snapshot_properties
104
-
description: The properties of the schedule policy. For more details see https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_resource_policy#snapshot_properties
105
-
varType: |-
106
-
object(
107
-
{
108
-
guest_flush = bool
109
-
labels = map(string)
110
-
storage_locations = list(string)
111
-
}
112
-
)
113
95
- name: snapshot_retention_policy
114
96
description: The retention policy to be applied to the schedule policy. For more details see https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_resource_policy#retention_policy
115
97
varType: |-
@@ -150,6 +132,24 @@ spec:
150
132
}
151
133
)
152
134
required: true
135
+
- name: snapshot_properties
136
+
description: The properties of the schedule policy. For more details see https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_resource_policy#snapshot_properties
137
+
varType: |-
138
+
object(
139
+
{
140
+
guest_flush = bool
141
+
labels = map(string)
142
+
storage_locations = list(string)
143
+
}
144
+
)
145
+
- name: disks
146
+
description: List of self_links persistent disks to attach the snapshot policy to (ie. projects/project_id/disks/diskname/zones/zone_name)
147
+
varType: list(string)
148
+
defaultValue: []
149
+
- name: module_depends_on
150
+
description: List of modules or resources this module depends on
151
+
varType: list(any)
152
+
defaultValue: []
153
153
outputs:
154
154
- name: attachments
155
155
description: Disk attachments to the resource policy.
Copy file name to clipboardExpand all lines: modules/compute_instance/metadata.yaml
+55-52Lines changed: 55 additions & 52 deletions
Original file line number
Diff line number
Diff line change
@@ -80,6 +80,30 @@ spec:
80
80
location: examples/compute_instance/tags
81
81
interfaces:
82
82
variables:
83
+
- name: network
84
+
description: Network to deploy to. Only one of network or subnetwork should be specified.
85
+
varType: string
86
+
defaultValue: ""
87
+
- name: subnetwork
88
+
description: Subnet to deploy to. Only one of network or subnetwork should be specified.
89
+
varType: string
90
+
defaultValue: ""
91
+
- name: subnetwork_project
92
+
description: The project that subnetwork belongs to
93
+
varType: string
94
+
defaultValue: ""
95
+
- name: hostname
96
+
description: Hostname of instances
97
+
varType: string
98
+
defaultValue: ""
99
+
- name: add_hostname_suffix
100
+
description: Adds a suffix to the hostname
101
+
varType: bool
102
+
defaultValue: true
103
+
- name: static_ips
104
+
description: List of static IPs for VM instances
105
+
varType: list(string)
106
+
defaultValue: []
83
107
- name: access_config
84
108
description: Access configurations, i.e. IPs via which the VM instance can be accessed via the Internet.
85
109
varType: |-
@@ -88,77 +112,53 @@ spec:
88
112
network_tier = string
89
113
}))
90
114
defaultValue: []
91
-
- name: add_hostname_suffix
92
-
description: Adds a suffix to the hostname
93
-
varType: bool
94
-
defaultValue: true
95
-
- name: alias_ip_ranges
96
-
description: (Optional) An array of alias IP ranges for this network interface. Can only be specified for network interfaces on subnet-mode networks.
115
+
- name: ipv6_access_config
116
+
description: IPv6 access configurations. Currently a max of 1 IPv6 access configuration is supported. If not specified, the instance will have no external IPv6 Internet access.
97
117
varType: |-
98
118
list(object({
99
-
ip_cidr_range = string
100
-
subnetwork_range_name = string
119
+
network_tier = string
101
120
}))
102
121
defaultValue: []
103
-
- name: deletion_protection
104
-
description: "Enable deletion protection on this instance. Note: you must disable deletion protection before removing the resource, or the instance cannot be deleted and the Terraform run will not complete successfully."
105
-
varType: bool
106
-
defaultValue: false
107
-
- name: hostname
108
-
description: Hostname of instances
122
+
- name: num_instances
123
+
description: Number of instances to create. This value is ignored if static_ips is provided.
124
+
varType: number
125
+
defaultValue: "1"
126
+
- name: instance_template
127
+
description: Instance template self_link used to create compute instances
128
+
varType: string
129
+
required: true
130
+
- name: region
131
+
description: Region where the instances should be created.
132
+
varType: string
133
+
- name: zone
134
+
description: Zone where the instances should be created. If not specified, instances will be spread across available zones in the region.
109
135
varType: string
110
-
defaultValue: ""
111
136
- name: hostname_suffix_separator
112
137
description: Separator character to compose hostname when add_hostname_suffix is set to true.
113
138
varType: string
114
139
defaultValue: "-"
115
-
- name: instance_template
116
-
description: Instance template self_link used to create compute instances
117
-
varType: string
118
-
required: true
119
-
- name: ipv6_access_config
120
-
description: IPv6 access configurations. Currently a max of 1 IPv6 access configuration is supported. If not specified, the instance will have no external IPv6 Internet access.
140
+
- name: deletion_protection
141
+
description: "Enable deletion protection on this instance. Note: you must disable deletion protection before removing the resource, or the instance cannot be deleted and the Terraform run will not complete successfully."
142
+
varType: bool
143
+
defaultValue: false
144
+
- name: alias_ip_ranges
145
+
description: (Optional) An array of alias IP ranges for this network interface. Can only be specified for network interfaces on subnet-mode networks.
121
146
varType: |-
122
147
list(object({
123
-
network_tier = string
148
+
ip_cidr_range = string
149
+
subnetwork_range_name = string
124
150
}))
125
151
defaultValue: []
152
+
- name: resource_policies
153
+
description: (Optional) A list of short names or self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
154
+
varType: list(string)
155
+
defaultValue: []
126
156
- name: labels
127
157
description: (Optional) Labels to override those from the template, provided as a map
128
158
varType: map(string)
129
-
- name: network
130
-
description: Network to deploy to. Only one of network or subnetwork should be specified.
131
-
varType: string
132
-
defaultValue: ""
133
-
- name: num_instances
134
-
description: Number of instances to create. This value is ignored if static_ips is provided.
135
-
varType: number
136
-
defaultValue: "1"
137
-
- name: region
138
-
description: Region where the instances should be created.
139
-
varType: string
140
159
- name: resource_manager_tags
141
160
description: (Optional) A tag is a key-value pair that can be attached to a Google Cloud resource. You can use tags to conditionally allow or deny policies based on whether a resource has a specific tag. This value is not returned by the API. In Terraform, this value cannot be updated and changing it will recreate the resource.
142
161
varType: map(string)
143
-
- name: resource_policies
144
-
description: (Optional) A list of short names or self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
145
-
varType: list(string)
146
-
defaultValue: []
147
-
- name: static_ips
148
-
description: List of static IPs for VM instances
149
-
varType: list(string)
150
-
defaultValue: []
151
-
- name: subnetwork
152
-
description: Subnet to deploy to. Only one of network or subnetwork should be specified.
153
-
varType: string
154
-
defaultValue: ""
155
-
- name: subnetwork_project
156
-
description: The project that subnetwork belongs to
157
-
varType: string
158
-
defaultValue: ""
159
-
- name: zone
160
-
description: Zone where the instances should be created. If not specified, instances will be spread across available zones in the region.
0 commit comments