This repository was archived by the owner on Jun 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
4452resource "ibm_database" "etcd_db" {
4553 depends_on = [ibm_iam_authorization_policy . policy ]
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments