File tree Expand file tree Collapse file tree 4 files changed +40
-9
lines changed Expand file tree Collapse file tree 4 files changed +40
-9
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ You need the following permissions to run this module.
140
140
| <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 1.0.0 |
141
141
| <a name =" requirement_ibm " ></a > [ ibm] ( #requirement\_ ibm ) | >= 1.54.0, < 2.0.0 |
142
142
| <a name =" requirement_random " ></a > [ random] ( #requirement\_ random ) | >= 3.5.1 |
143
+ | <a name =" requirement_time " ></a > [ time] ( #requirement\_ time ) | >= 0.9.1 |
143
144
144
145
## Modules
145
146
@@ -159,6 +160,7 @@ You need the following permissions to run this module.
159
160
| [ ibm_resource_key.resource_key] ( https://registry.terraform.io/providers/ibm-cloud/ibm/latest/docs/resources/resource_key ) | resource |
160
161
| [ ibm_resource_tag.cos_access_tag] ( https://registry.terraform.io/providers/ibm-cloud/ibm/latest/docs/resources/resource_tag ) | resource |
161
162
| [ random_string.bucket_name_suffix] ( https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/string ) | resource |
163
+ | [ time_sleep.wait_for_authorization_policy] ( https://registry.terraform.io/providers/hashicorp/time/latest/docs/resources/sleep ) | resource |
162
164
163
165
## Inputs
164
166
Original file line number Diff line number Diff line change @@ -33,6 +33,13 @@ locals {
33
33
validate_cross_region_location_archive_disabled_inputs = var. create_cos_bucket && (var. cross_region_location != null && var. archive_days != null ) ? tobool (" If var.cross_region_location is set, then var.expire_days cannot be set." ) : true
34
34
}
35
35
36
+ # workaround for https://github.com/IBM-Cloud/terraform-provider-ibm/issues/4478
37
+ resource "time_sleep" "wait_for_authorization_policy" {
38
+ depends_on = [ibm_iam_authorization_policy . policy ]
39
+
40
+ create_duration = " 30s"
41
+ }
42
+
36
43
# Resource to create COS instance if create_cos_instance is true
37
44
resource "ibm_resource_instance" "cos_instance" {
38
45
count = var. create_cos_instance ? 1 : 0
Original file line number Diff line number Diff line change 596
596
"version_constraints" : [
597
597
" \u003e = 3.5.1"
598
598
]
599
+ },
600
+ "time" : {
601
+ "source" : " hashicorp/time" ,
602
+ "version_constraints" : [
603
+ " \u003e = 0.9.1"
604
+ ]
599
605
}
600
606
},
601
607
"managed_resources" : {
617
623
},
618
624
"pos" : {
619
625
"filename" : " main.tf" ,
620
- "line" : 101
626
+ "line" : 108
621
627
}
622
628
},
623
629
"ibm_cos_bucket.cos_bucket1" : {
637
643
},
638
644
"pos" : {
639
645
"filename" : " main.tf" ,
640
- "line" : 178
646
+ "line" : 185
641
647
}
642
648
},
643
649
"ibm_iam_authorization_policy.policy" : {
652
658
},
653
659
"pos" : {
654
660
"filename" : " main.tf" ,
655
- "line" : 78
661
+ "line" : 85
656
662
}
657
663
},
658
664
"ibm_resource_instance.cos_instance" : {
672
678
},
673
679
"pos" : {
674
680
"filename" : " main.tf" ,
675
- "line" : 37
681
+ "line" : 44
676
682
}
677
683
},
678
684
"ibm_resource_key.resource_key" : {
690
696
},
691
697
"pos" : {
692
698
"filename" : " main.tf" ,
693
- "line" : 54
699
+ "line" : 61
694
700
}
695
701
},
696
702
"ibm_resource_tag.cos_access_tag" : {
706
712
},
707
713
"pos" : {
708
714
"filename" : " main.tf" ,
709
- "line" : 47
715
+ "line" : 54
710
716
}
711
717
},
712
718
"random_string.bucket_name_suffix" : {
721
727
},
722
728
"pos" : {
723
729
"filename" : " main.tf" ,
724
- "line" : 88
730
+ "line" : 95
731
+ }
732
+ },
733
+ "time_sleep.wait_for_authorization_policy" : {
734
+ "mode" : " managed" ,
735
+ "type" : " time_sleep" ,
736
+ "name" : " wait_for_authorization_policy" ,
737
+ "provider" : {
738
+ "name" : " time"
739
+ },
740
+ "pos" : {
741
+ "filename" : " main.tf" ,
742
+ "line" : 37
725
743
}
726
744
}
727
745
},
802
820
},
803
821
"pos" : {
804
822
"filename" : " main.tf" ,
805
- "line" : 261
823
+ "line" : 268
806
824
}
807
825
},
808
826
"instance_cbr_rule" : {
880
898
},
881
899
"pos" : {
882
900
"filename" : " main.tf" ,
883
- "line" : 296
901
+ "line" : 303
884
902
}
885
903
}
886
904
}
Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ terraform {
6
6
source = " ibm-cloud/ibm"
7
7
version = " >= 1.54.0, < 2.0.0"
8
8
}
9
+ time = {
10
+ source = " hashicorp/time"
11
+ version = " >= 0.9.1"
12
+ }
9
13
random = {
10
14
source = " hashicorp/random"
11
15
version = " >= 3.5.1"
You can’t perform that action at this time.
0 commit comments