Closed rahul-tiple closed 4 months ago
@rahul-tiple it seems like you are using older version of Terraform (0.13). Module support TF version 1.3+
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
TL;DR
When creating VPC and Firewall rules using "Terraform blueprints and modules for Google Cloud," the VPC is successfully created. However, when attempting to create the Firewall at the same time, an error occurs: "Network name already created." This error found because I am using the same source, "terraform-google-modules/network/google." Additionally, when using the source "terraform-google-modules/network/google//modules/firewall-rules," a version conflict error occurs.
How to set the default variables in the firewall_rules variable.tf file:
Expected behavior
https://github.com/terraform-google-modules/terraform-google-network/blob/master/main.tf
Observed behavior
Error: Invalid type specification on .terraform/modules/firewall_rules/modules/firewall-rules/variables.tf line 32, in variable "rules": 32: description = optional(string, null) Keyword "optional" is not a valid type constructor.
and
version conflict
Terraform Configuration
Terraform Version
Additional information
Please explain how to use the Terraform GCP blueprint and set the default variables in the firewall_rules variable.tf file.