Skip to content

Commit

Permalink
Fix: Format
Browse files Browse the repository at this point in the history
  • Loading branch information
rajivreddy committed Apr 16, 2024
1 parent 4e5dbb6 commit 9d2366a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@

## Usage
```hcl
module "vpc" {
module "vpc" {
source = "./"
name = "terraform-vpc"
}
}
```

<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
Expand All @@ -33,7 +30,7 @@ No modules.

| Name | Type |
|------|------|
| [google_compute_network.network](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_network) | resource |
| [google_compute_network.this](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_network) | resource |

## Inputs

Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resource "google_compute_network" "network" {
resource "google_compute_network" "this" {

Check failure on line 1 in main.tf

View workflow job for this annotation

GitHub Actions / checkov-action

CKV2_GCP_18: "Ensure GCP network defines a firewall and does not use the default firewall"
count = var.create ? 1 : 0

name = var.name
Expand Down
8 changes: 4 additions & 4 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
output "id" {
description = "an identifier for the resource with format projects/{{project}}/global/networks/{{name}}"
value = try(google_compute_network.network[0].id, null)
value = try(google_compute_network.this[0].id, null)
}

output "gateway_ipv4" {
description = "The gateway address for default routing out of the network. This value is selected by GCP."
value = try(google_compute_network.network[0].gateway_ipv4, null)
value = try(google_compute_network.this[0].gateway_ipv4, null)
}

output "numeric_id" {
description = "The unique identifier for the resource. This identifier is defined by the server."
value = try(google_compute_network.network[0].numeric_id, null)
value = try(google_compute_network.this[0].numeric_id, null)
}

output "self_link" {
description = "The URI of the created resource."
value = try(google_compute_network.network[0].self_link, null)
value = try(google_compute_network.this[0].self_link, null)
}

1 change: 0 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ variable "mtu" {
type = number
description = "(Optional) Maximum Transmission Unit in bytes. The default value is 1460 bytes. The minimum value for this field is 1300 and the maximum value is 8896 bytes (jumbo frames). Note that packets larger than 1500 bytes (standard Ethernet) can be subject to TCP-MSS clamping or dropped with an ICMP Fragmentation-Needed message if the packets are routed to the Internet or other VPCs with varying MTUs."
default = null

}

variable "enable_ula_internal_ipv6" {
Expand Down

0 comments on commit 9d2366a

Please sign in to comment.