Skip to content

Commit b6383ec

Browse files
author
Sean Sundberg
authored
Updates output dependencies (#3)
* Updates dependencies for output * Adds version.tf with ibm-cloud provider info * Updates verify image to cli-tools:v0.12.0-lite Signed-off-by: Sean Sundberg <[email protected]>
1 parent 2c87e80 commit b6383ec

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

.github/workflows/verify.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
verify:
1414
if: ${{ !contains( github.event.pull_request.labels.*.name, 'skip ci' ) }}
1515
runs-on: ubuntu-latest
16-
container: quay.io/ibmgaragecloud/cli-tools:v0.10.0-lite
16+
container: quay.io/ibmgaragecloud/cli-tools:v0.12.0-lite
1717

1818
strategy:
1919
matrix:

outputs.tf

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11

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

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

14+
output "subnet_count" {
15+
value = var.subnet_count
16+
description = "The number of subnets for the vpc"
17+
}
18+
1419
output "zone_names" {
1520
value = local.vpc_zone_names
1621
depends_on = [ibm_is_subnet.vpc_subnet]

version.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
terraform {
2+
required_version = ">= 0.12.0"
3+
4+
required_providers {
5+
ibm = {
6+
source = "ibm-cloud/ibm"
7+
version = ">= 1.17"
8+
}
9+
}
10+
}

0 commit comments

Comments
 (0)