Skip to content

Commit

Permalink
fix: added workaround for known [provider issue](IBM-Cloud/terraform-…
Browse files Browse the repository at this point in the history
…provider-ibm#4478) ([#160](https://github.ibm.com/GoldenEye/icd-datastax-module/issues/160)) (#592)

Co-authored-by: Conall Ó Cofaigh <ocofaigh@ie.ibm.com>
  • Loading branch information
Aayush-Abhyarthi and ocofaigh committed Aug 9, 2023
1 parent 1e5c637 commit 8707703
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 7 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ To attach access management tags to resources in this module, you need the follo
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.3.0 |
| <a name="requirement_ibm"></a> [ibm](#requirement\_ibm) | >= 1.52.0 |
| <a name="requirement_null"></a> [null](#requirement\_null) | >= 3.2.1 |
| <a name="requirement_time"></a> [time](#requirement\_time) | >= 0.9.1 |

### Modules

Expand All @@ -118,6 +119,7 @@ To attach access management tags to resources in this module, you need the follo
| [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 |
| [null_resource.clean_default_acl](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |
| [null_resource.clean_default_security_group](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |
| [time_sleep.wait_for_authorization_policy](https://registry.terraform.io/providers/hashicorp/time/latest/docs/resources/sleep) | resource |
| [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 |

### Inputs
Expand Down
6 changes: 6 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ data "ibm_is_vpc_address_prefixes" "get_address_prefixes" {
}
##############################################################################

# workaround for https://github.com/IBM-Cloud/terraform-provider-ibm/issues/4478
resource "time_sleep" "wait_for_authorization_policy" {
depends_on = [ibm_iam_authorization_policy.policy]

create_duration = "30s"
}

##############################################################################
# Create vpc route resource
Expand Down
32 changes: 25 additions & 7 deletions module-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,12 @@
"version_constraints": [
"\u003e= 3.2.1"
]
},
"time": {
"source": "hashicorp/time",
"version_constraints": [
"\u003e= 0.9.1"
]
}
},
"managed_resources": {
Expand All @@ -562,7 +568,7 @@
},
"pos": {
"filename": "main.tf",
"line": 108
"line": 114
}
},
"ibm_is_flow_log.flow_logs": {
Expand All @@ -583,7 +589,7 @@
},
"pos": {
"filename": "main.tf",
"line": 119
"line": 125
}
},
"ibm_is_network_acl.network_acl": {
Expand Down Expand Up @@ -618,7 +624,7 @@
},
"pos": {
"filename": "main.tf",
"line": 86
"line": 92
}
},
"ibm_is_security_group_rule.default_vpc_rule": {
Expand Down Expand Up @@ -709,7 +715,7 @@
},
"pos": {
"filename": "main.tf",
"line": 51
"line": 57
}
},
"ibm_is_vpc_routing_table_route.routing_table_routes": {
Expand All @@ -724,7 +730,7 @@
},
"pos": {
"filename": "main.tf",
"line": 60
"line": 66
}
},
"null_resource.clean_default_acl": {
Expand All @@ -739,7 +745,7 @@
},
"pos": {
"filename": "main.tf",
"line": 153
"line": 159
}
},
"null_resource.clean_default_security_group": {
Expand All @@ -754,7 +760,19 @@
},
"pos": {
"filename": "main.tf",
"line": 137
"line": 143
}
},
"time_sleep.wait_for_authorization_policy": {
"mode": "managed",
"type": "time_sleep",
"name": "wait_for_authorization_policy",
"provider": {
"name": "time"
},
"pos": {
"filename": "main.tf",
"line": 47
}
}
},
Expand Down
4 changes: 4 additions & 0 deletions version.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ terraform {
source = "IBM-Cloud/ibm"
version = ">= 1.52.0"
}
time = {
source = "hashicorp/time"
version = ">= 0.9.1"
}
null = {
source = "hashicorp/null"
version = ">= 3.2.1"
Expand Down

0 comments on commit 8707703

Please sign in to comment.