Skip to content

Commit f592742

Browse files
1 parent a6e6144 commit f592742

File tree

5 files changed

+38
-5
lines changed

5 files changed

+38
-5
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ You need the following permissions to run this module.
5050
|------|---------|
5151
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.3.0 |
5252
| <a name="requirement_ibm"></a> [ibm](#requirement\_ibm) | >= 1.54.0, < 2.0.0 |
53+
| <a name="requirement_time"></a> [time](#requirement\_time) | >= 0.9.1 |
5354

5455
### Modules
5556

@@ -65,6 +66,7 @@ You need the following permissions to run this module.
6566
| [ibm_iam_authorization_policy.kms_policy](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/iam_authorization_policy) | resource |
6667
| [ibm_resource_key.service_credentials](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/resource_key) | resource |
6768
| [ibm_resource_tag.mongodb_tag](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/resource_tag) | resource |
69+
| [time_sleep.wait_for_authorization_policy](https://registry.terraform.io/providers/hashicorp/time/latest/docs/resources/sleep) | resource |
6870
| [ibm_database_connection.database_connection](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/data-sources/database_connection) | data source |
6971

7072
### Inputs

main.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ resource "ibm_iam_authorization_policy" "kms_policy" {
3636
roles = ["Reader"]
3737
}
3838

39+
# workaround for https://github.com/IBM-Cloud/terraform-provider-ibm/issues/4478
40+
resource "time_sleep" "wait_for_authorization_policy" {
41+
depends_on = [ibm_iam_authorization_policy.kms_policy]
42+
43+
create_duration = "30s"
44+
}
45+
3946
resource "ibm_database" "mongodb" {
4047
depends_on = [ibm_iam_authorization_policy.kms_policy]
4148
name = var.instance_name

module-metadata.json

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,12 @@
416416
"version_constraints": [
417417
"\u003e= 1.54.0, \u003c 2.0.0"
418418
]
419+
},
420+
"time": {
421+
"source": "hashicorp/time",
422+
"version_constraints": [
423+
"\u003e= 0.9.1"
424+
]
419425
}
420426
},
421427
"managed_resources": {
@@ -441,7 +447,7 @@
441447
},
442448
"pos": {
443449
"filename": "main.tf",
444-
"line": 39
450+
"line": 46
445451
}
446452
},
447453
"ibm_iam_authorization_policy.kms_policy": {
@@ -473,7 +479,7 @@
473479
},
474480
"pos": {
475481
"filename": "main.tf",
476-
"line": 174
482+
"line": 181
477483
}
478484
},
479485
"ibm_resource_tag.mongodb_tag": {
@@ -489,7 +495,19 @@
489495
},
490496
"pos": {
491497
"filename": "main.tf",
492-
"line": 123
498+
"line": 130
499+
}
500+
},
501+
"time_sleep.wait_for_authorization_policy": {
502+
"mode": "managed",
503+
"type": "time_sleep",
504+
"name": "wait_for_authorization_policy",
505+
"provider": {
506+
"name": "time"
507+
},
508+
"pos": {
509+
"filename": "main.tf",
510+
"line": 40
493511
}
494512
}
495513
},
@@ -509,7 +527,7 @@
509527
},
510528
"pos": {
511529
"filename": "main.tf",
512-
"line": 202
530+
"line": 209
513531
}
514532
}
515533
},
@@ -588,7 +606,7 @@
588606
},
589607
"pos": {
590608
"filename": "main.tf",
591-
"line": 134
609+
"line": 141
592610
}
593611
}
594612
}

profiles/fscloud/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ The IBM Cloud Framework for Financial Services mandates the application of an in
1717
|------|---------|
1818
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.3.0 |
1919
| <a name="requirement_ibm"></a> [ibm](#requirement\_ibm) | >= 1.54.0, < 2.0.0 |
20+
| <a name="requirement_time"></a> [time](#requirement\_time) | >= 0.9.1 |
2021

2122
### Modules
2223

@@ -32,6 +33,7 @@ The IBM Cloud Framework for Financial Services mandates the application of an in
3233
| [ibm_iam_authorization_policy.kms_policy](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/iam_authorization_policy) | resource |
3334
| [ibm_resource_key.service_credentials](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/resource_key) | resource |
3435
| [ibm_resource_tag.mongodb_tag](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/resource_tag) | resource |
36+
| [time_sleep.wait_for_authorization_policy](https://registry.terraform.io/providers/hashicorp/time/latest/docs/resources/sleep) | resource |
3537
| [ibm_database_connection.database_connection](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/data-sources/database_connection) | data source |
3638

3739
### Inputs

version.tf

Lines changed: 4 additions & 0 deletions
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)