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
compute: Added fields like `raw_key`, `rsa_encrypted_key`, `kms_key_service_account` to all relevant resources on `google_compute_instance_template` and `google_compute_region_instance_template`
Copy file name to clipboardExpand all lines: google/services/compute/resource_compute_instance_template.go
+62-5Lines changed: 62 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -215,6 +215,20 @@ images are encrypted with your own keys.`,
215
215
MaxItems: 1,
216
216
Elem: &schema.Resource{
217
217
Schema: map[string]*schema.Schema{
218
+
"raw_key": {
219
+
Type: schema.TypeString,
220
+
Optional: true,
221
+
ForceNew: true,
222
+
Description: `Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.`,
223
+
Sensitive: true,
224
+
},
225
+
"rsa_encrypted_key": {
226
+
Type: schema.TypeString,
227
+
Optional: true,
228
+
ForceNew: true,
229
+
Description: `Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.`,
230
+
Sensitive: true,
231
+
},
218
232
"kms_key_service_account": {
219
233
Type: schema.TypeString,
220
234
Optional: true,
@@ -225,10 +239,10 @@ Engine default service account is used.`,
225
239
},
226
240
"kms_key_self_link": {
227
241
Type: schema.TypeString,
228
-
Required: true,
242
+
Optional: true,
229
243
ForceNew: true,
230
244
Description: `The self link of the encryption key that is stored in
231
-
Google Cloud KMS.`,
245
+
Google Cloud KMS. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.`,
232
246
},
233
247
},
234
248
},
@@ -250,6 +264,21 @@ required except for local SSD.`,
250
264
MaxItems: 1,
251
265
Elem: &schema.Resource{
252
266
Schema: map[string]*schema.Schema{
267
+
"raw_key": {
268
+
Type: schema.TypeString,
269
+
Optional: true,
270
+
ForceNew: true,
271
+
Description: `Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.`,
272
+
Sensitive: true,
273
+
},
274
+
275
+
"rsa_encrypted_key": {
276
+
Type: schema.TypeString,
277
+
Optional: true,
278
+
ForceNew: true,
279
+
Description: `Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.`,
280
+
Sensitive: true,
281
+
},
253
282
"kms_key_service_account": {
254
283
Type: schema.TypeString,
255
284
Optional: true,
@@ -260,10 +289,10 @@ Engine default service account is used.`,
260
289
},
261
290
"kms_key_self_link": {
262
291
Type: schema.TypeString,
263
-
Required: true,
292
+
Optional: true,
264
293
ForceNew: true,
265
294
Description: `The self link of the encryption key that is stored in
266
-
Google Cloud KMS.`,
295
+
Google Cloud KMS. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.`,
267
296
},
268
297
},
269
298
},
@@ -308,9 +337,15 @@ Google Cloud KMS.`,
308
337
Description: `Encrypts or decrypts a disk using a customer-supplied encryption key.`,
309
338
Elem: &schema.Resource{
310
339
Schema: map[string]*schema.Schema{
340
+
"kms_key_service_account": {
341
+
Type: schema.TypeString,
342
+
Optional: true,
343
+
ForceNew: true,
344
+
Description: `The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.`,
0 commit comments