@@ -94,10 +94,8 @@ func TestAccTencentCloudCosBucketResource_basic(t *testing.T) {
94
94
),
95
95
},
96
96
{
97
- ResourceName : "tencentcloud_cos_bucket.bucket_basic" ,
98
- ImportState : true ,
99
- ImportStateVerify : true ,
100
- ImportStateVerifyIgnore : []string {"force_clean" },
97
+ ResourceName : "tencentcloud_cos_bucket.bucket_basic" ,
98
+ ImportState : true ,
101
99
},
102
100
},
103
101
})
@@ -129,10 +127,8 @@ func TestAccTencentCloudCosBucketResource_ACL(t *testing.T) {
129
127
),
130
128
},
131
129
{
132
- ResourceName : "tencentcloud_cos_bucket.bucket_acl" ,
133
- ImportState : true ,
134
- ImportStateVerify : true ,
135
- ImportStateVerifyIgnore : []string {"acl_body" },
130
+ ResourceName : "tencentcloud_cos_bucket.bucket_acl" ,
131
+ ImportState : true ,
136
132
},
137
133
},
138
134
})
@@ -212,10 +208,8 @@ func TestAccTencentCloudCosBucketResource_cors(t *testing.T) {
212
208
),
213
209
},
214
210
{
215
- ResourceName : "tencentcloud_cos_bucket.bucket_cors" ,
216
- ImportState : true ,
217
- ImportStateVerify : true ,
218
- ImportStateVerifyIgnore : []string {"acl" },
211
+ ResourceName : "tencentcloud_cos_bucket.bucket_cors" ,
212
+ ImportState : true ,
219
213
},
220
214
},
221
215
})
@@ -282,10 +276,8 @@ func TestAccTencentCloudCosBucketResource_lifecycle(t *testing.T) {
282
276
),
283
277
},
284
278
{
285
- ResourceName : "tencentcloud_cos_bucket.bucket_lifecycle" ,
286
- ImportState : true ,
287
- ImportStateVerify : true ,
288
- ImportStateVerifyIgnore : []string {"acl" },
279
+ ResourceName : "tencentcloud_cos_bucket.bucket_lifecycle" ,
280
+ ImportState : true ,
289
281
},
290
282
},
291
283
})
@@ -321,10 +313,8 @@ func TestAccTencentCloudCosBucketResource_website(t *testing.T) {
321
313
),
322
314
},
323
315
{
324
- ResourceName : "tencentcloud_cos_bucket.bucket_website" ,
325
- ImportState : true ,
326
- ImportStateVerify : true ,
327
- ImportStateVerifyIgnore : []string {"acl" },
316
+ ResourceName : "tencentcloud_cos_bucket.bucket_website" ,
317
+ ImportState : true ,
328
318
},
329
319
},
330
320
})
@@ -346,10 +336,8 @@ func TestAccTencentCloudCosBucketResource_MAZ(t *testing.T) {
346
336
),
347
337
},
348
338
{
349
- ResourceName : "tencentcloud_cos_bucket.bucket_maz" ,
350
- ImportState : true ,
351
- ImportStateVerify : true ,
352
- ImportStateVerifyIgnore : []string {"acl" , "multi_az" },
339
+ ResourceName : "tencentcloud_cos_bucket.bucket_maz" ,
340
+ ImportState : true ,
353
341
},
354
342
},
355
343
})
@@ -398,10 +386,8 @@ func TestAccTencentCloudCosBucketResource_originPull(t *testing.T) {
398
386
),
399
387
},
400
388
{
401
- ResourceName : "tencentcloud_cos_bucket.with_origin" ,
402
- ImportState : true ,
403
- ImportStateVerify : true ,
404
- ImportStateVerifyIgnore : []string {"acl" },
389
+ ResourceName : "tencentcloud_cos_bucket.with_origin" ,
390
+ ImportState : true ,
405
391
},
406
392
},
407
393
})
@@ -485,10 +471,8 @@ func TestAccTencentCloudCosBucketResource_replication(t *testing.T) {
485
471
),
486
472
},
487
473
{
488
- ResourceName : "tencentcloud_cos_bucket.with_replication" ,
489
- ImportState : true ,
490
- ImportStateVerify : true ,
491
- ImportStateVerifyIgnore : []string {"acl" , "replica_role" },
474
+ ResourceName : "tencentcloud_cos_bucket.with_replication" ,
475
+ ImportState : true ,
492
476
},
493
477
},
494
478
})
@@ -570,8 +554,8 @@ resource "tencentcloud_cos_bucket" "bucket_acl" {
570
554
acl_body = <<EOF
571
555
<AccessControlPolicy>
572
556
<Owner>
573
- <ID>qcs::cam::uin/${local.uin }:uin/${local.uin }</ID>
574
- <DisplayName>qcs::cam::uin/${local.uin }:uin/${local.uin }</DisplayName>
557
+ <ID>qcs::cam::uin/${local.owner_uin }:uin/${local.owner_uin }</ID>
558
+ <DisplayName>qcs::cam::uin/${local.owner_uin }:uin/${local.owner_uin }</DisplayName>
575
559
</Owner>
576
560
<AccessControlList>
577
561
<Grant>
@@ -582,15 +566,15 @@ resource "tencentcloud_cos_bucket" "bucket_acl" {
582
566
</Grant>
583
567
<Grant>
584
568
<Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser">
585
- <ID>qcs::cam::uin/${local.uin }:uin/${local.uin }</ID>
586
- <DisplayName>qcs::cam::uin/${local.uin }:uin/${local.uin }</DisplayName>
569
+ <ID>qcs::cam::uin/${local.owner_uin }:uin/${local.owner_uin }</ID>
570
+ <DisplayName>qcs::cam::uin/${local.owner_uin }:uin/${local.owner_uin }</DisplayName>
587
571
</Grantee>
588
572
<Permission>READ</Permission>
589
573
</Grant>
590
574
<Grant>
591
575
<Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser">
592
- <ID>qcs::cam::uin/${local.uin }:uin/${local.uin }</ID>
593
- <DisplayName>qcs::cam::uin/${local.uin }:uin/${local.uin }</DisplayName>
576
+ <ID>qcs::cam::uin/${local.owner_uin }:uin/${local.owner_uin }</ID>
577
+ <DisplayName>qcs::cam::uin/${local.owner_uin }:uin/${local.owner_uin }</DisplayName>
594
578
</Grantee>
595
579
<Permission>FULL_CONTROL</Permission>
596
580
</Grant>
@@ -611,8 +595,8 @@ resource "tencentcloud_cos_bucket" "bucket_acl" {
611
595
acl_body = <<EOF
612
596
<AccessControlPolicy>
613
597
<Owner>
614
- <ID>qcs::cam::uin/${local.uin }:uin/${local.uin }</ID>
615
- <DisplayName>qcs::cam::uin/${local.uin }:uin/${local.uin }</DisplayName>
598
+ <ID>qcs::cam::uin/${local.owner_uin }:uin/${local.owner_uin }</ID>
599
+ <DisplayName>qcs::cam::uin/${local.owner_uin }:uin/${local.owner_uin }</DisplayName>
616
600
</Owner>
617
601
<AccessControlList>
618
602
<Grant>
@@ -623,15 +607,15 @@ resource "tencentcloud_cos_bucket" "bucket_acl" {
623
607
</Grant>
624
608
<Grant>
625
609
<Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser">
626
- <ID>qcs::cam::uin/${local.uin }:uin/${local.uin }</ID>
627
- <DisplayName>qcs::cam::uin/${local.uin }:uin/${local.uin }</DisplayName>
610
+ <ID>qcs::cam::uin/${local.owner_uin }:uin/${local.owner_uin }</ID>
611
+ <DisplayName>qcs::cam::uin/${local.owner_uin }:uin/${local.owner_uin }</DisplayName>
628
612
</Grantee>
629
613
<Permission>FULL_CONTROL</Permission>
630
614
</Grant>
631
615
<Grant>
632
616
<Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser">
633
- <ID>qcs::cam::uin/${local.uin }:uin/${local.uin }</ID>
634
- <DisplayName>qcs::cam::uin/${local.uin }:uin/${local.uin }</DisplayName>
617
+ <ID>qcs::cam::uin/${local.owner_uin }:uin/${local.owner_uin }</ID>
618
+ <DisplayName>qcs::cam::uin/${local.owner_uin }:uin/${local.owner_uin }</DisplayName>
635
619
</Grantee>
636
620
<Permission>WRITE_ACP</Permission>
637
621
</Grant>
@@ -643,15 +627,15 @@ resource "tencentcloud_cos_bucket" "bucket_acl" {
643
627
</Grant>
644
628
<Grant>
645
629
<Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser">
646
- <ID>qcs::cam::uin/${local.uin }:uin/${local.uin }</ID>
647
- <DisplayName>qcs::cam::uin/${local.uin }:uin/${local.uin }</DisplayName>
630
+ <ID>qcs::cam::uin/${local.owner_uin }:uin/${local.owner_uin }</ID>
631
+ <DisplayName>qcs::cam::uin/${local.owner_uin }:uin/${local.owner_uin }</DisplayName>
648
632
</Grantee>
649
633
<Permission>READ</Permission>
650
634
</Grant>
651
635
<Grant>
652
636
<Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser">
653
- <ID>qcs::cam::uin/${local.uin }:uin/${local.uin }</ID>
654
- <DisplayName>qcs::cam::uin/${local.uin }:uin/${local.uin }</DisplayName>
637
+ <ID>qcs::cam::uin/${local.owner_uin }:uin/${local.owner_uin }</ID>
638
+ <DisplayName>qcs::cam::uin/${local.owner_uin }:uin/${local.owner_uin }</DisplayName>
655
639
</Grantee>
656
640
<Permission>WRITE</Permission>
657
641
</Grant>
0 commit comments