File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 33  tmp_dir            =  " ${ path . cwd } /.tmp" 
44  zone_count         =  3 
55  vpc_zone_names     =  for  index  in  range (max (local. zone_count , var. address_prefix_count )):  " ${ var . region } -${ (index %  local. zone_count ) +  1 } " 
6-   prefix_name        =  . name_prefix  !=  " " ?  var. name_prefix  :  var. resource_group_name 
6+   prefix_name        =  . name_prefix  !=  " " &&  var . name_prefix   !=   null   ?  var. name_prefix  :  var. resource_group_name 
77  vpc_name           =  lower (replace (var. name  !=  " " ?  var. name  :  " ${ local . prefix_name } -vpc" " _" " -" 
88  vpc_id             =  . ibm_is_vpc . vpc . id 
99  security_group_count  =  . provision  ?  2  :  0 
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ variable "resource_group_id" {
33  type         =  string 
44  description  =  " The id of the IBM Cloud resource group where the VPC instance will be created." 
55}
6+ 
67variable  "resource_group_name"  {
78  type         =  string 
89  description  =  " The name of the IBM Cloud resource group where the VPC instance will be created." 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments