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

Commit 857bf6f

Browse files
Khuzaima05Khuzaima-Shakeelocofaigh
authored
fix: added workaround for [known provider issue](IBM-Cloud/terraform-provider-ibm#4478) (#72)
Co-authored-by: Khuzaima-Shakeel <[email protected]> Co-authored-by: Conall Ó Cofaigh <[email protected]>
1 parent 277b8f5 commit 857bf6f

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

README.md

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

5758
### Modules
5859

@@ -68,6 +69,7 @@ You need the following permissions to run this module.
6869
| [ibm_iam_authorization_policy.policy](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/iam_authorization_policy) | resource |
6970
| [ibm_resource_key.service_credentials](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/resource_key) | resource |
7071
| [ibm_resource_tag.etcd_tag](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/resource_tag) | resource |
72+
| [time_sleep.wait_for_authorization_policy](https://registry.terraform.io/providers/hashicorp/time/latest/docs/resources/sleep) | resource |
7173
| [ibm_database_connection.database_connection](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/data-sources/database_connection) | data source |
7274

7375
### Inputs

main.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ resource "ibm_iam_authorization_policy" "policy" {
4040
roles = ["Reader"]
4141
}
4242

43+
# workaround for https://github.com/IBM-Cloud/terraform-provider-ibm/issues/4478
44+
resource "time_sleep" "wait_for_authorization_policy" {
45+
depends_on = [ibm_iam_authorization_policy.policy]
46+
47+
create_duration = "30s"
48+
}
49+
50+
4351
# Create etcd database
4452
resource "ibm_database" "etcd_db" {
4553
depends_on = [ibm_iam_authorization_policy.policy]

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.56.1, < 2.0.0"
88
}
9+
time = {
10+
source = "hashicorp/time"
11+
version = ">= 0.9.1"
12+
}
913
}
1014
}

0 commit comments

Comments
 (0)