Skip to content

Commit 8707703

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

File tree

4 files changed

+37
-7
lines changed

4 files changed

+37
-7
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ To attach access management tags to resources in this module, you need the follo
9393
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.3.0 |
9494
| <a name="requirement_ibm"></a> [ibm](#requirement\_ibm) | >= 1.52.0 |
9595
| <a name="requirement_null"></a> [null](#requirement\_null) | >= 3.2.1 |
96+
| <a name="requirement_time"></a> [time](#requirement\_time) | >= 0.9.1 |
9697

9798
### Modules
9899

@@ -118,6 +119,7 @@ To attach access management tags to resources in this module, you need the follo
118119
| [ibm_is_vpc_routing_table_route.routing_table_routes](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/is_vpc_routing_table_route) | resource |
119120
| [null_resource.clean_default_acl](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |
120121
| [null_resource.clean_default_security_group](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |
122+
| [time_sleep.wait_for_authorization_policy](https://registry.terraform.io/providers/hashicorp/time/latest/docs/resources/sleep) | resource |
121123
| [ibm_is_vpc_address_prefixes.get_address_prefixes](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/data-sources/is_vpc_address_prefixes) | data source |
122124

123125
### Inputs

main.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ data "ibm_is_vpc_address_prefixes" "get_address_prefixes" {
4343
}
4444
##############################################################################
4545

46+
# workaround for https://github.com/IBM-Cloud/terraform-provider-ibm/issues/4478
47+
resource "time_sleep" "wait_for_authorization_policy" {
48+
depends_on = [ibm_iam_authorization_policy.policy]
49+
50+
create_duration = "30s"
51+
}
4652

4753
##############################################################################
4854
# Create vpc route resource

module-metadata.json

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,12 @@
546546
"version_constraints": [
547547
"\u003e= 3.2.1"
548548
]
549+
},
550+
"time": {
551+
"source": "hashicorp/time",
552+
"version_constraints": [
553+
"\u003e= 0.9.1"
554+
]
549555
}
550556
},
551557
"managed_resources": {
@@ -562,7 +568,7 @@
562568
},
563569
"pos": {
564570
"filename": "main.tf",
565-
"line": 108
571+
"line": 114
566572
}
567573
},
568574
"ibm_is_flow_log.flow_logs": {
@@ -583,7 +589,7 @@
583589
},
584590
"pos": {
585591
"filename": "main.tf",
586-
"line": 119
592+
"line": 125
587593
}
588594
},
589595
"ibm_is_network_acl.network_acl": {
@@ -618,7 +624,7 @@
618624
},
619625
"pos": {
620626
"filename": "main.tf",
621-
"line": 86
627+
"line": 92
622628
}
623629
},
624630
"ibm_is_security_group_rule.default_vpc_rule": {
@@ -709,7 +715,7 @@
709715
},
710716
"pos": {
711717
"filename": "main.tf",
712-
"line": 51
718+
"line": 57
713719
}
714720
},
715721
"ibm_is_vpc_routing_table_route.routing_table_routes": {
@@ -724,7 +730,7 @@
724730
},
725731
"pos": {
726732
"filename": "main.tf",
727-
"line": 60
733+
"line": 66
728734
}
729735
},
730736
"null_resource.clean_default_acl": {
@@ -739,7 +745,7 @@
739745
},
740746
"pos": {
741747
"filename": "main.tf",
742-
"line": 153
748+
"line": 159
743749
}
744750
},
745751
"null_resource.clean_default_security_group": {
@@ -754,7 +760,19 @@
754760
},
755761
"pos": {
756762
"filename": "main.tf",
757-
"line": 137
763+
"line": 143
764+
}
765+
},
766+
"time_sleep.wait_for_authorization_policy": {
767+
"mode": "managed",
768+
"type": "time_sleep",
769+
"name": "wait_for_authorization_policy",
770+
"provider": {
771+
"name": "time"
772+
},
773+
"pos": {
774+
"filename": "main.tf",
775+
"line": 47
758776
}
759777
}
760778
},

version.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ terraform {
66
source = "IBM-Cloud/ibm"
77
version = ">= 1.52.0"
88
}
9+
time = {
10+
source = "hashicorp/time"
11+
version = ">= 0.9.1"
12+
}
913
null = {
1014
source = "hashicorp/null"
1115
version = ">= 3.2.1"

0 commit comments

Comments
 (0)