cloudquery / cq-provider-azure

CloudQuery Provider for Azure
https://cloudquery.io
Mozilla Public License 2.0
11 stars 14 forks source link

fix(tests): Remove terraform for Azure ExpressRoute port #440

Closed hermanschaaf closed 2 years ago

hermanschaaf commented 2 years ago

This was costing ~6k per month, and the terraform resource doesn't allow us to use the lowest bandwidth setting of 50mbps, since it has to be specified in whole-number gbps

github-actions[bot] commented 2 years ago

Terraform Format and Style success

Terraform Initialization success

Terraform Validation success

Validation Output ``` Success! The configuration is valid. ```

Terraform Plan success

Show Plan ``` module.demo.azurerm_resource_group.network: Refreshing state... [id=/subscriptions/78f26f10-0e60-4293-8a7e-122584ccb40d/resourceGroups/cq-network-rg] module.demo.azurerm_express_route_port.er_port: Refreshing state... [id=/subscriptions/78f26f10-0e60-4293-8a7e-122584ccb40d/resourceGroups/cq-network-rg/providers/Microsoft.Network/expressRoutePorts/cq-er-port] module.demo.azurerm_local_network_gateway.onpremise: Refreshing state... [id=/subscriptions/78f26f10-0e60-4293-8a7e-122584ccb40d/resourceGroups/cq-network-rg/providers/Microsoft.Network/localNetworkGateways/onpremise] module.demo.azurerm_express_route_circuit.er_circuit: Refreshing state... [id=/subscriptions/78f26f10-0e60-4293-8a7e-122584ccb40d/resourceGroups/cq-network-rg/providers/Microsoft.Network/expressRouteCircuits/cq-circuit] module.demo.azurerm_virtual_wan.virtual_wan: Refreshing state... [id=/subscriptions/78f26f10-0e60-4293-8a7e-122584ccb40d/resourceGroups/cq-network-rg/providers/Microsoft.Network/virtualWans/cq-er-virtualwan] module.demo.azurerm_public_ip.example: Refreshing state... [id=/subscriptions/78f26f10-0e60-4293-8a7e-122584ccb40d/resourceGroups/cq-network-rg/providers/Microsoft.Network/publicIPAddresses/cq-virtual-network-gateway-public-ip] module.demo.azurerm_virtual_network.example: Refreshing state... [id=/subscriptions/78f26f10-0e60-4293-8a7e-122584ccb40d/resourceGroups/cq-network-rg/providers/Microsoft.Network/virtualNetworks/cq-vnet-example] module.demo.azurerm_route_filter.route_filter: Refreshing state... [id=/subscriptions/78f26f10-0e60-4293-8a7e-122584ccb40d/resourceGroups/cq-network-rg/providers/Microsoft.Network/routeFilters/cq-route-filter] module.demo.azurerm_virtual_hub.virtual_hub: Refreshing state... [id=/subscriptions/78f26f10-0e60-4293-8a7e-122584ccb40d/resourceGroups/cq-network-rg/providers/Microsoft.Network/virtualHubs/cq-er-virtualhub] module.demo.azurerm_subnet.example: Refreshing state... [id=/subscriptions/78f26f10-0e60-4293-8a7e-122584ccb40d/resourceGroups/cq-network-rg/providers/Microsoft.Network/virtualNetworks/cq-vnet-example/subnets/GatewaySubnet] module.demo.azurerm_express_route_gateway.gateway: Refreshing state... [id=/subscriptions/78f26f10-0e60-4293-8a7e-122584ccb40d/resourceGroups/cq-network-rg/providers/Microsoft.Network/expressRouteGateways/cq-er-gateway] module.demo.azurerm_virtual_network_gateway.example: Refreshing state... [id=/subscriptions/78f26f10-0e60-4293-8a7e-122584ccb40d/resourceGroups/cq-network-rg/providers/Microsoft.Network/virtualNetworkGateways/cq-er-virtual-network-gateway] module.demo.azurerm_virtual_network_gateway_connection.onpremise: Refreshing state... [id=/subscriptions/78f26f10-0e60-4293-8a7e-122584ccb40d/resourceGroups/cq-network-rg/providers/Microsoft.Network/connections/cq-er-virtual-network-gateway-connection] No changes. Your infrastructure matches the configuration. Terraform has compared your real infrastructure against your configuration and found no differences, so no changes are needed. ```

Pusher: @hermanschaaf, Action: pull_request_target, Working Directory: `, Workflow:terraform_plan`

github-actions[bot] commented 2 years ago

💰 Infracost estimate: monthly cost will not change

Project Previous New Diff
cloudquery/cq-provider-azure/terraform/network/prod/plan.json $336 $336 $0
Infracost output ``` ────────────────────────────────── The following projects have no cost estimate changes: cloudquery/cq-provider-azure/terraform/network/prod/plan.json Run the following command to see their breakdown: infracost breakdown --path=/path/to/code ────────────────────────────────── 13 cloud resources were detected: ∙ 3 were estimated, 1 of which usage-based costs, see https://infracost.io/usage-file ∙ 7 were free: ∙ 1 x azurerm_local_network_gateway ∙ 1 x azurerm_resource_group ∙ 1 x azurerm_subnet ∙ 1 x azurerm_virtual_hub ∙ 1 x azurerm_virtual_network ∙ 1 x azurerm_virtual_network_gateway_connection ∙ 1 x azurerm_virtual_wan ∙ 3 are not supported yet, see https://infracost.io/requested-resources: ∙ 1 x azurerm_express_route_circuit ∙ 1 x azurerm_express_route_port ∙ 1 x azurerm_route_filter ```

This comment will be updated when the cost estimate changes.

Is this comment useful? Yes, No, Other

github-actions[bot] commented 2 years ago

Terraform Format and Style success

Terraform Initialization success

Terraform Validation success

Validation Output ``` Success! The configuration is valid. ```

Terraform Plan success

Show Plan ``` module.demo.azurerm_resource_group.network: Refreshing state... [id=/subscriptions/78f26f10-0e60-4293-8a7e-122584ccb40d/resourceGroups/cq-network-rg] module.demo.azurerm_express_route_port.er_port: Refreshing state... [id=/subscriptions/78f26f10-0e60-4293-8a7e-122584ccb40d/resourceGroups/cq-network-rg/providers/Microsoft.Network/expressRoutePorts/cq-er-port] module.demo.azurerm_route_filter.route_filter: Refreshing state... [id=/subscriptions/78f26f10-0e60-4293-8a7e-122584ccb40d/resourceGroups/cq-network-rg/providers/Microsoft.Network/routeFilters/cq-route-filter] module.demo.azurerm_public_ip.example: Refreshing state... [id=/subscriptions/78f26f10-0e60-4293-8a7e-122584ccb40d/resourceGroups/cq-network-rg/providers/Microsoft.Network/publicIPAddresses/cq-virtual-network-gateway-public-ip] module.demo.azurerm_express_route_circuit.er_circuit: Refreshing state... [id=/subscriptions/78f26f10-0e60-4293-8a7e-122584ccb40d/resourceGroups/cq-network-rg/providers/Microsoft.Network/expressRouteCircuits/cq-circuit] module.demo.azurerm_virtual_network.example: Refreshing state... [id=/subscriptions/78f26f10-0e60-4293-8a7e-122584ccb40d/resourceGroups/cq-network-rg/providers/Microsoft.Network/virtualNetworks/cq-vnet-example] module.demo.azurerm_virtual_wan.virtual_wan: Refreshing state... [id=/subscriptions/78f26f10-0e60-4293-8a7e-122584ccb40d/resourceGroups/cq-network-rg/providers/Microsoft.Network/virtualWans/cq-er-virtualwan] module.demo.azurerm_local_network_gateway.onpremise: Refreshing state... [id=/subscriptions/78f26f10-0e60-4293-8a7e-122584ccb40d/resourceGroups/cq-network-rg/providers/Microsoft.Network/localNetworkGateways/onpremise] module.demo.azurerm_subnet.example: Refreshing state... [id=/subscriptions/78f26f10-0e60-4293-8a7e-122584ccb40d/resourceGroups/cq-network-rg/providers/Microsoft.Network/virtualNetworks/cq-vnet-example/subnets/GatewaySubnet] module.demo.azurerm_virtual_hub.virtual_hub: Refreshing state... [id=/subscriptions/78f26f10-0e60-4293-8a7e-122584ccb40d/resourceGroups/cq-network-rg/providers/Microsoft.Network/virtualHubs/cq-er-virtualhub] module.demo.azurerm_virtual_network_gateway.example: Refreshing state... [id=/subscriptions/78f26f10-0e60-4293-8a7e-122584ccb40d/resourceGroups/cq-network-rg/providers/Microsoft.Network/virtualNetworkGateways/cq-er-virtual-network-gateway] module.demo.azurerm_express_route_gateway.gateway: Refreshing state... [id=/subscriptions/78f26f10-0e60-4293-8a7e-122584ccb40d/resourceGroups/cq-network-rg/providers/Microsoft.Network/expressRouteGateways/cq-er-gateway] module.demo.azurerm_virtual_network_gateway_connection.onpremise: Refreshing state... [id=/subscriptions/78f26f10-0e60-4293-8a7e-122584ccb40d/resourceGroups/cq-network-rg/providers/Microsoft.Network/connections/cq-er-virtual-network-gateway-connection] No changes. Your infrastructure matches the configuration. Terraform has compared your real infrastructure against your configuration and found no differences, so no changes are needed. ```

Pusher: @hermanschaaf, Action: pull_request_target, Working Directory: `, Workflow:terraform_plan`