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

aviatrix_firewall_instace user_data type string but seems to expect json #1848

Open
rtrentinavx opened this issue Aug 10, 2023 · 1 comment

Comments

@rtrentinavx
Copy link

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:

  • Provider version: aviatrix_firewall_instance 3.1.1
  • Terraform version Terraform v1.5.5
  • Aviatrix Controller version 7.1.1906

Additional context
What was the impact?

Add any other context about the problem here.

@patelavtx
Copy link

Additionl info.

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

Additional data

  • Tested with Postman API call with just 'Launch + Associate' fails with same error with user_data, deploys without any user_data

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants