AviatrixSystems / terraform-provider-aviatrix

Terraform Aviatrix provider
https://www.terraform.io/docs/providers/aviatrix/
Mozilla Public License 2.0
43 stars 50 forks source link

aviatrix_firewall_instace user_data type string but seems to expect json #1848

Open rtrentinavx opened 1 year ago

rtrentinavx commented 1 year ago

Describe the problem

user_data does not work on GCP for CheckPoint/Fortinet.

To Reproduce

user_data type is string and when a string is used the following error is raised:

│ Error: failed to create a new firewall instance: rest API add_firewall_instance POST failed: invalid user data. Expecting value: line 1 column 1 (char 0) │ │ with aviatrix_firewall_instance.firewall_instance, │ on main.tf line 1, in resource "aviatrix_firewall_instance" "firewall_instance": │ 1: resource "aviatrix_firewall_instance" "firewall_instance" {

Expected behavior Controller works with key pair variables and correctly configure the data field under the instance.

Additional data / screenshots Include any relevant tf files.

Environment:

Additional context What was the impact?

Add any other context about the problem here.

patelavtx commented 1 year ago

Additionl info.

Expected behaviour : GUI only offers key:value for user_data, but this displays same error

Additional data

image