Skip to content

Commit 5f739f1

Browse files
author
Sean Sundberg
authored
Updates output dependencies to wait for vpc to be provisioned (#31)
Signed-off-by: Sean Sundberg <[email protected]>
1 parent 0f98e73 commit 5f739f1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

outputs.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11

22
output "name" {
33
value = local.vpc_name
4-
depends_on = [null_resource.post_vpc_address_pfx_default]
4+
depends_on = [null_resource.post_vpc_address_pfx_default, ibm_is_vpc.vpc]
55
description = "The name of the vpc instance"
66
}
77

88
output "id" {
99
value = local.vpc_id
10-
depends_on = [null_resource.post_vpc_address_pfx_default]
10+
depends_on = [null_resource.post_vpc_address_pfx_default, ibm_is_vpc.vpc]
1111
description = "The id of the vpc instance"
1212
}
1313

@@ -18,7 +18,7 @@ output "acl_id" {
1818

1919
output "crn" {
2020
value = local.crn
21-
depends_on = [null_resource.post_vpc_address_pfx_default]
21+
depends_on = [null_resource.post_vpc_address_pfx_default, ibm_is_vpc.vpc]
2222
description = "The CRN for the vpc instance"
2323
}
2424

@@ -29,12 +29,12 @@ output "count" {
2929

3030
output "names" {
3131
value = [local.vpc_name]
32-
depends_on = [null_resource.post_vpc_address_pfx_default]
32+
depends_on = [null_resource.post_vpc_address_pfx_default, ibm_is_vpc.vpc]
3333
description = "The name of the vpc instance"
3434
}
3535

3636
output "ids" {
3737
value = [local.vpc_id]
38-
depends_on = [null_resource.post_vpc_address_pfx_default]
38+
depends_on = [null_resource.post_vpc_address_pfx_default, ibm_is_vpc.vpc]
3939
description = "The id of the vpc instance"
4040
}

0 commit comments

Comments
 (0)