Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for VPN server resource #186

Merged
merged 6 commits into from
Sep 11, 2024
Merged

Conversation

luisarojas
Copy link
Collaborator

@luisarojas luisarojas commented Sep 9, 2024

Changes

  • Support for service ibm_is_vpn_server
  • Support for resource ibm_is_vpn_server_client (free)
  • Support for resource ibm_is_vpn_server_route (free)

Unit Tests

go test -v ./internal/providers/terraform/ibm/is_vpn_server_test.go

=== RUN   TestIsVpnServer
=== PAUSE TestIsVpnServer
=== CONT  TestIsVpnServer
=== RUN   TestIsVpnServer/HCL
No IBM_CLOUD_IAM_URL credential set, defaults to production.
=== RUN   TestIsVpnServer/Terraform_CLI
No IBM_CLOUD_IAM_URL credential set, defaults to production.
--- PASS: TestIsVpnServer (12.26s)
    --- PASS: TestIsVpnServer/HCL (1.58s)
    --- PASS: TestIsVpnServer/Terraform_CLI (10.68s)
PASS
ok      command-line-arguments  13.108s

is_ibm_vpn_server_test.golden


 Name                                            Monthly Qty  Unit                Monthly Cost 
                                                                                               
 ibm_is_vpc.vpc                                                                                
 ├─ VPC instance                                           1  Instance                   $0.00 
 ├─ VPC egress free allowance (first 5GB)    Monthly cost depends on usage: $0.00 per GB       
 └─ VPC egress us-south (first 9995 GB)      Monthly cost depends on usage: $0.090915 per GB   
 └─ VPC egress us-south (next 40000 GB)      Monthly cost depends on usage: $0.086735 per GB   
 └─ VPC egress us-south (next 100000 GB)     Monthly cost depends on usage: $0.07315 per GB    
 └─ VPC egress us-south (over 149995 GB)     Monthly cost depends on usage: $0.05225 per GB    
                                                                                               
 ibm_is_vpn_server.vpn_server                                                                  
 ├─ VPN connection hours us-south                        730  Hours                      $7.63 
 └─ VPN instance hours us-south                          730  Hours                     $91.54 
                                                                                               
 ibm_is_vpn_server.vpn_server_without_usage                                                    
 ├─ VPN connection hours us-south            Monthly cost depends on usage: $0.01045 per Hours 
 └─ VPN instance hours us-south              Monthly cost depends on usage: $0.13 per Hours    
                                                                                               
 OVERALL TOTAL                                                                          $99.17 
──────────────────────────────────
5 cloud resources were detected:
∙ 3 were estimated, 1 of which usage-based costs, see https://infracost.io/usage-file
∙ 2 were free:
  ∙ 2 x ibm_is_subnet

@luisarojas luisarojas self-assigned this Sep 9, 2024
@luisarojas luisarojas added the enhancement New feature or request label Sep 9, 2024
@luisarojas luisarojas merged commit f3c22f7 into master Sep 11, 2024
6 of 7 checks passed
@luisarojas luisarojas deleted the feat/add-support-vpn-server branch September 25, 2024 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants