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
Description: `The image from which to initialize this disk. This can be one of: the image's self_link, projects/{project}/global/images/{image}, projects/{project}/global/images/family/{family}, global/images/{image}, global/images/family/{family}, family/{family}, {project}/{family}, {project}/{image}, {family}, or {image}. ~> Note: Either source or source_image is required when creating a new instance except for when creating a local SSD.`,
162
162
},
163
+
"source_image_encryption_key": {
164
+
Type: schema.TypeList,
165
+
Optional: true,
166
+
ForceNew: true,
167
+
Description: `The customer-supplied encryption key of the source
168
+
image. Required if the source image is protected by a
169
+
customer-supplied encryption key.
170
+
171
+
Instance templates do not store customer-supplied
172
+
encryption keys, so you cannot create disks for
173
+
instances in a managed instance group if the source
174
+
images are encrypted with your own keys.`,
175
+
MaxItems: 1,
176
+
Elem: &schema.Resource{
177
+
Schema: map[string]*schema.Schema{
178
+
"kms_key_service_account": {
179
+
Type: schema.TypeString,
180
+
Optional: true,
181
+
ForceNew: true,
182
+
Description: `The service account being used for the encryption
183
+
request for the given KMS key. If absent, the Compute
184
+
Engine default service account is used.`,
185
+
},
186
+
"kms_key_self_link": {
187
+
Type: schema.TypeString,
188
+
Required: true,
189
+
ForceNew: true,
190
+
Description: `The self link of the encryption key that is stored in
191
+
Google Cloud KMS.`,
192
+
},
193
+
},
194
+
},
195
+
},
196
+
"source_snapshot": {
197
+
Type: schema.TypeString,
198
+
Optional: true,
199
+
ForceNew: true,
200
+
Description: `The source snapshot to create this disk. When creating
201
+
a new instance, one of initializeParams.sourceSnapshot,
202
+
initializeParams.sourceImage, or disks.source is
203
+
required except for local SSD.`,
204
+
},
205
+
"source_snapshot_encryption_key": {
206
+
Type: schema.TypeList,
207
+
Optional: true,
208
+
ForceNew: true,
209
+
Description: `The customer-supplied encryption key of the source snapshot.`,
210
+
MaxItems: 1,
211
+
Elem: &schema.Resource{
212
+
Schema: map[string]*schema.Schema{
213
+
"kms_key_service_account": {
214
+
Type: schema.TypeString,
215
+
Optional: true,
216
+
ForceNew: true,
217
+
Description: `The service account being used for the encryption
218
+
request for the given KMS key. If absent, the Compute
219
+
Engine default service account is used.`,
220
+
},
221
+
"kms_key_self_link": {
222
+
Type: schema.TypeString,
223
+
Required: true,
224
+
ForceNew: true,
225
+
Description: `The self link of the encryption key that is stored in
0 commit comments