We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bda04f commit b79ba0fCopy full SHA for b79ba0f
main.tf
@@ -1,8 +1,3 @@
1
-provider "ibm" {
2
- generation = 2
3
- region = var.region
4
- ibmcloud_api_key = var.ibmcloud_api_key
5
-}
6
7
locals {
8
zone_count = 3
@@ -17,7 +12,15 @@ locals {
17
12
ipv4_cidr_blocks = ibm_is_subnet.vpc_subnet[*].ipv4_cidr_block
18
13
}
19
14
15
+resource null_resource print_names {
16
+ provisioner "local-exec" {
+ command = "echo 'Resource group: ${var.resource_group_name}'"
+ }
+}
20
+
21
data ibm_resource_group resource_group {
22
+ depends_on = [null_resource.print_names]
23
24
name = var.resource_group_name
25
26
provider.tf
@@ -0,0 +1,5 @@
+provider "ibm" {
+ generation = 2
+ region = var.region
+ ibmcloud_api_key = var.ibmcloud_api_key
0 commit comments