@@ -174,15 +174,15 @@ func TestAccKmsCryptoKey_basic(t *testing.T) {
174
174
ResourceName : "google_kms_crypto_key.crypto_key" ,
175
175
ImportState : true ,
176
176
ImportStateVerify : true ,
177
- ImportStateVerifyIgnore : []string {"labels" , "terraform_labels" },
177
+ ImportStateVerifyIgnore : []string {"skip_initial_version_creation" , " labels" , "terraform_labels" },
178
178
},
179
179
// Test importing with a short id
180
180
{
181
181
ResourceName : "google_kms_crypto_key.crypto_key" ,
182
182
ImportState : true ,
183
183
ImportStateId : fmt .Sprintf ("%s/%s/%s/%s" , projectId , location , keyRingName , cryptoKeyName ),
184
184
ImportStateVerify : true ,
185
- ImportStateVerifyIgnore : []string {"labels" , "terraform_labels" },
185
+ ImportStateVerifyIgnore : []string {"skip_initial_version_creation" , " labels" , "terraform_labels" },
186
186
},
187
187
// Use a separate TestStep rather than a CheckDestroy because we need the project to still exist.
188
188
{
@@ -219,25 +219,28 @@ func TestAccKmsCryptoKey_rotation(t *testing.T) {
219
219
Config : testGoogleKmsCryptoKey_rotation (projectId , projectOrg , projectBillingAccount , keyRingName , cryptoKeyName , rotationPeriod ),
220
220
},
221
221
{
222
- ResourceName : "google_kms_crypto_key.crypto_key" ,
223
- ImportState : true ,
224
- ImportStateVerify : true ,
222
+ ResourceName : "google_kms_crypto_key.crypto_key" ,
223
+ ImportState : true ,
224
+ ImportStateVerify : true ,
225
+ ImportStateVerifyIgnore : []string {"skip_initial_version_creation" },
225
226
},
226
227
{
227
228
Config : testGoogleKmsCryptoKey_rotation (projectId , projectOrg , projectBillingAccount , keyRingName , cryptoKeyName , updatedRotationPeriod ),
228
229
},
229
230
{
230
- ResourceName : "google_kms_crypto_key.crypto_key" ,
231
- ImportState : true ,
232
- ImportStateVerify : true ,
231
+ ResourceName : "google_kms_crypto_key.crypto_key" ,
232
+ ImportState : true ,
233
+ ImportStateVerify : true ,
234
+ ImportStateVerifyIgnore : []string {"skip_initial_version_creation" },
233
235
},
234
236
{
235
237
Config : testGoogleKmsCryptoKey_rotationRemoved (projectId , projectOrg , projectBillingAccount , keyRingName , cryptoKeyName ),
236
238
},
237
239
{
238
- ResourceName : "google_kms_crypto_key.crypto_key" ,
239
- ImportState : true ,
240
- ImportStateVerify : true ,
240
+ ResourceName : "google_kms_crypto_key.crypto_key" ,
241
+ ImportState : true ,
242
+ ImportStateVerify : true ,
243
+ ImportStateVerifyIgnore : []string {"skip_initial_version_creation" },
241
244
},
242
245
// Use a separate TestStep rather than a CheckDestroy because we need the project to still exist.
243
246
{
@@ -272,17 +275,19 @@ func TestAccKmsCryptoKey_template(t *testing.T) {
272
275
Config : testGoogleKmsCryptoKey_template (projectId , projectOrg , projectBillingAccount , keyRingName , cryptoKeyName , algorithm ),
273
276
},
274
277
{
275
- ResourceName : "google_kms_crypto_key.crypto_key" ,
276
- ImportState : true ,
277
- ImportStateVerify : true ,
278
+ ResourceName : "google_kms_crypto_key.crypto_key" ,
279
+ ImportState : true ,
280
+ ImportStateVerify : true ,
281
+ ImportStateVerifyIgnore : []string {"skip_initial_version_creation" },
278
282
},
279
283
{
280
284
Config : testGoogleKmsCryptoKey_template (projectId , projectOrg , projectBillingAccount , keyRingName , cryptoKeyName , updatedAlgorithm ),
281
285
},
282
286
{
283
- ResourceName : "google_kms_crypto_key.crypto_key" ,
284
- ImportState : true ,
285
- ImportStateVerify : true ,
287
+ ResourceName : "google_kms_crypto_key.crypto_key" ,
288
+ ImportState : true ,
289
+ ImportStateVerify : true ,
290
+ ImportStateVerifyIgnore : []string {"skip_initial_version_creation" },
286
291
},
287
292
// Use a separate TestStep rather than a CheckDestroy because we need the project to still exist.
288
293
{
@@ -318,7 +323,7 @@ func TestAccKmsCryptoKey_destroyDuration(t *testing.T) {
318
323
ResourceName : "google_kms_crypto_key.crypto_key" ,
319
324
ImportState : true ,
320
325
ImportStateVerify : true ,
321
- ImportStateVerifyIgnore : []string {"labels" , "terraform_labels" },
326
+ ImportStateVerifyIgnore : []string {"skip_initial_version_creation" , " labels" , "terraform_labels" },
322
327
},
323
328
// Use a separate TestStep rather than a CheckDestroy because we need the project to still exist.
324
329
{
0 commit comments