Skip to content

Commit a442bde

Browse files
Co-authored-by: Conall Ó Cofaigh <[email protected]>
1 parent ec08060 commit a442bde

File tree

4 files changed

+36
-5
lines changed

4 files changed

+36
-5
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ You need the following permissions to run this module.
127127
|------|---------|
128128
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.3.0 |
129129
| <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 |
130131

131132
### Modules
132133

@@ -142,6 +143,7 @@ You need the following permissions to run this module.
142143
| [ibm_event_streams_topic.es_topic](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/event_streams_topic) | resource |
143144
| [ibm_iam_authorization_policy.kms_policy](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/iam_authorization_policy) | resource |
144145
| [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 |
145147

146148
### Inputs
147149

main.tf

+7
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ locals {
2727
) : null
2828
}
2929

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+
3037
resource "ibm_resource_instance" "es_instance" {
3138
name = var.es_name
3239
service = "messagehub"

module-metadata.json

+23-5
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,12 @@
300300
"version_constraints": [
301301
"\u003e= 1.54.0, \u003c 2.0.0"
302302
]
303+
},
304+
"time": {
305+
"source": "hashicorp/time",
306+
"version_constraints": [
307+
"\u003e= 0.9.1"
308+
]
303309
}
304310
},
305311
"managed_resources": {
@@ -317,7 +323,7 @@
317323
},
318324
"pos": {
319325
"filename": "main.tf",
320-
"line": 55
326+
"line": 62
321327
}
322328
},
323329
"ibm_event_streams_topic.es_topic": {
@@ -335,7 +341,7 @@
335341
},
336342
"pos": {
337343
"filename": "main.tf",
338-
"line": 66
344+
"line": 73
339345
}
340346
},
341347
"ibm_iam_authorization_policy.kms_policy": {
@@ -352,7 +358,7 @@
352358
},
353359
"pos": {
354360
"filename": "main.tf",
355-
"line": 80
361+
"line": 87
356362
}
357363
},
358364
"ibm_resource_instance.es_instance": {
@@ -372,7 +378,19 @@
372378
},
373379
"pos": {
374380
"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
376394
}
377395
}
378396
},
@@ -452,7 +470,7 @@
452470
},
453471
"pos": {
454472
"filename": "main.tf",
455-
"line": 93
473+
"line": 100
456474
}
457475
}
458476
}

version.tf

+4
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,9 @@ terraform {
66
source = "IBM-Cloud/ibm"
77
version = ">= 1.54.0, < 2.0.0"
88
}
9+
time = {
10+
source = "hashicorp/time"
11+
version = ">= 0.9.1"
12+
}
913
}
1014
}

0 commit comments

Comments
 (0)