Skip to content
This repository was archived by the owner on Jun 17, 2025. It is now read-only.

Commit 2a6e7d9

Browse files
Co-authored-by: Conall Ó Cofaigh <[email protected]>
1 parent a9b162e commit 2a6e7d9

File tree

4 files changed

+36
-5
lines changed

4 files changed

+36
-5
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ To attach access management tags to resources in this module, you need the follo
5959
|------|---------|
6060
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.3.0 |
6161
| <a name="requirement_ibm"></a> [ibm](#requirement\_ibm) | >= 1.54.0, < 2.0.0 |
62+
| <a name="requirement_time"></a> [time](#requirement\_time) | >= 0.9.1 |
6263

6364
### Modules
6465

@@ -74,6 +75,7 @@ To attach access management tags to resources in this module, you need the follo
7475
| [ibm_iam_authorization_policy.kms_policy](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/iam_authorization_policy) | resource |
7576
| [ibm_resource_key.service_credentials](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/resource_key) | resource |
7677
| [ibm_resource_tag.enterprisedb_tag](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/resource_tag) | resource |
78+
| [time_sleep.wait_for_authorization_policy](https://registry.terraform.io/providers/hashicorp/time/latest/docs/resources/sleep) | resource |
7779
| [ibm_database_connection.database_connection](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/data-sources/database_connection) | data source |
7880

7981
### Inputs

main.tf

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

41+
# workaround for https://github.com/IBM-Cloud/terraform-provider-ibm/issues/4478
42+
resource "time_sleep" "wait_for_authorization_policy" {
43+
depends_on = [ibm_iam_authorization_policy.kms_policy]
44+
45+
create_duration = "30s"
46+
}
47+
4148
# Create edb database
4249
resource "ibm_database" "enterprise_db" {
4350
depends_on = [ibm_iam_authorization_policy.kms_policy]

module-metadata.json

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,12 @@
455455
"version_constraints": [
456456
"\u003e= 1.54.0, \u003c 2.0.0"
457457
]
458+
},
459+
"time": {
460+
"source": "hashicorp/time",
461+
"version_constraints": [
462+
"\u003e= 0.9.1"
463+
]
458464
}
459465
},
460466
"managed_resources": {
@@ -483,7 +489,7 @@
483489
},
484490
"pos": {
485491
"filename": "main.tf",
486-
"line": 42
492+
"line": 49
487493
}
488494
},
489495
"ibm_iam_authorization_policy.kms_policy": {
@@ -515,7 +521,7 @@
515521
},
516522
"pos": {
517523
"filename": "main.tf",
518-
"line": 180
524+
"line": 187
519525
}
520526
},
521527
"ibm_resource_tag.enterprisedb_tag": {
@@ -531,7 +537,19 @@
531537
},
532538
"pos": {
533539
"filename": "main.tf",
534-
"line": 132
540+
"line": 139
541+
}
542+
},
543+
"time_sleep.wait_for_authorization_policy": {
544+
"mode": "managed",
545+
"type": "time_sleep",
546+
"name": "wait_for_authorization_policy",
547+
"provider": {
548+
"name": "time"
549+
},
550+
"pos": {
551+
"filename": "main.tf",
552+
"line": 42
535553
}
536554
}
537555
},
@@ -551,7 +569,7 @@
551569
},
552570
"pos": {
553571
"filename": "main.tf",
554-
"line": 208
572+
"line": 215
555573
}
556574
}
557575
},
@@ -629,7 +647,7 @@
629647
},
630648
"pos": {
631649
"filename": "main.tf",
632-
"line": 142
650+
"line": 149
633651
}
634652
}
635653
}

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)