File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change 88  vpc_id             =  . vpc . id 
99  subnet_ids         =  . vpc_subnet [* ]. id 
1010  gateway_ids        =  . public_gateway  ?  ibm_is_public_gateway. vpc_gateway [* ]. id  :  [ for  val  in  range (local. zone_count ):  " " 
11-   security_group_id  =  ibm_is_security_group . security_group . id 
11+   security_group_id  =  ibm_is_vpc . vpc . default_security_group 
1212  ipv4_cidr_blocks   =  . vpc_subnet [* ]. ipv4_cidr_block 
1313}
1414
@@ -25,14 +25,9 @@ data ibm_resource_group resource_group {
2525}
2626
2727resource  ibm_is_vpc  vpc  {
28-   name            =  . vpc_name 
29-   resource_group  =  . ibm_resource_group . resource_group . id 
30- }
31- 
32- resource  ibm_is_security_group  security_group  {
33-   name            =  " ${ local . vpc_name } -security-group" 
34-   vpc             =  . vpc . id 
35-   resource_group  =  . ibm_resource_group . resource_group . id 
28+   name                         =  . vpc_name 
29+   resource_group               =  . ibm_resource_group . resource_group . id 
30+   default_security_group_name  =  " ${ local . vpc_name } -security-group" 
3631}
3732
3833resource  ibm_is_public_gateway  vpc_gateway  {
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments