File tree 4 files changed +36
-5
lines changed
4 files changed +36
-5
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ You need the following permissions to run this module.
127
127
| ------| ---------|
128
128
| <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 1.3.0 |
129
129
| <a name =" requirement_ibm " ></a > [ ibm] ( #requirement\_ ibm ) | >= 1.54.0, < 2.0.0 |
130
+ | <a name =" requirement_time " ></a > [ time] ( #requirement\_ time ) | >= 0.9.1 |
130
131
131
132
### Modules
132
133
@@ -142,6 +143,7 @@ You need the following permissions to run this module.
142
143
| [ ibm_event_streams_topic.es_topic] ( https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/event_streams_topic ) | resource |
143
144
| [ ibm_iam_authorization_policy.kms_policy] ( https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/iam_authorization_policy ) | resource |
144
145
| [ ibm_resource_instance.es_instance] ( https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/resource_instance ) | resource |
146
+ | [ time_sleep.wait_for_authorization_policy] ( https://registry.terraform.io/providers/hashicorp/time/latest/docs/resources/sleep ) | resource |
145
147
146
148
### Inputs
147
149
Original file line number Diff line number Diff line change @@ -27,6 +27,13 @@ locals {
27
27
) : null
28
28
}
29
29
30
+ # workaround for https://github.com/IBM-Cloud/terraform-provider-ibm/issues/4478
31
+ resource "time_sleep" "wait_for_authorization_policy" {
32
+ depends_on = [ibm_iam_authorization_policy . kms_policy ]
33
+
34
+ create_duration = " 30s"
35
+ }
36
+
30
37
resource "ibm_resource_instance" "es_instance" {
31
38
name = var. es_name
32
39
service = " messagehub"
Original file line number Diff line number Diff line change 300
300
"version_constraints" : [
301
301
" \u003e = 1.54.0, \u003c 2.0.0"
302
302
]
303
+ },
304
+ "time" : {
305
+ "source" : " hashicorp/time" ,
306
+ "version_constraints" : [
307
+ " \u003e = 0.9.1"
308
+ ]
303
309
}
304
310
},
305
311
"managed_resources" : {
317
323
},
318
324
"pos" : {
319
325
"filename" : " main.tf" ,
320
- "line" : 55
326
+ "line" : 62
321
327
}
322
328
},
323
329
"ibm_event_streams_topic.es_topic" : {
335
341
},
336
342
"pos" : {
337
343
"filename" : " main.tf" ,
338
- "line" : 66
344
+ "line" : 73
339
345
}
340
346
},
341
347
"ibm_iam_authorization_policy.kms_policy" : {
352
358
},
353
359
"pos" : {
354
360
"filename" : " main.tf" ,
355
- "line" : 80
361
+ "line" : 87
356
362
}
357
363
},
358
364
"ibm_resource_instance.es_instance" : {
372
378
},
373
379
"pos" : {
374
380
"filename" : " main.tf" ,
375
- "line" : 30
381
+ "line" : 37
382
+ }
383
+ },
384
+ "time_sleep.wait_for_authorization_policy" : {
385
+ "mode" : " managed" ,
386
+ "type" : " time_sleep" ,
387
+ "name" : " wait_for_authorization_policy" ,
388
+ "provider" : {
389
+ "name" : " time"
390
+ },
391
+ "pos" : {
392
+ "filename" : " main.tf" ,
393
+ "line" : 31
376
394
}
377
395
}
378
396
},
452
470
},
453
471
"pos" : {
454
472
"filename" : " main.tf" ,
455
- "line" : 93
473
+ "line" : 100
456
474
}
457
475
}
458
476
}
Original file line number Diff line number Diff line change @@ -6,5 +6,9 @@ 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
}
10
14
}
You can’t perform that action at this time.
0 commit comments