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

zpa_gateway id not set in zia_forwarding_control_rule #255

Closed
2 tasks done
snowman386 opened this issue Jan 31, 2025 · 1 comment · Fixed by #257
Closed
2 tasks done

zpa_gateway id not set in zia_forwarding_control_rule #255

snowman386 opened this issue Jan 31, 2025 · 1 comment · Fixed by #257
Assignees
Labels
bug Something isn't working

Comments

@snowman386
Copy link

Confirmation

  • My issue isn't already found on the issue tracker.
  • I have replicated my issue using the latest version of the library and it is still present.

zscaler-terraformer version

time="2025-01-31T10:09:53-05:00" level=error msg="failed to exec to git" time="2025-01-31T10:09:53-05:00" level=error msg="failed to exec to git" zscaler-terraformer -dev+ Terraform version: Terraform v1.10.5 on (windows_amd64) Your version of Zscaler-Terraformer is out of date! The latest version is v2.0.0. You can update by running the command "choco upgrade zscaler-terraformer" or download the new version from https://github.com/zscaler/zscaler-terraformer/releases

Expected outcome

Expect to be able to run terraform plan on imported code without errors

Actual outcome

Receiving:
│ Error: Missing required argument │ │ on zia_forwarding_control_rule.tf line 13, in resource "zia_forwarding_control_rule" "resource_zia_forwarding_control_rule_26363": │ 13: zpa_gateway { │ │ The argument "id" is required, but no definition was found.

Terraform code contains:
zpa_gateway { name = "SIPA-Ashburn" }

Manually adding the ID resolves the error

Steps to reproduce

  1. zscaler-terraformer import --resources="zia"
  2. terraform plan

References

No response

@willguibr willguibr self-assigned this Jan 31, 2025
@willguibr willguibr added the bug Something isn't working label Jan 31, 2025
@willguibr willguibr moved this to ⚙️ In development in Zscaler Automation Dashboard 🛣 Jan 31, 2025
@willguibr willguibr linked a pull request Jan 31, 2025 that will close this issue
9 tasks
@github-project-automation github-project-automation bot moved this from ⚙️ In development to 🚀 Shipped in Zscaler Automation Dashboard 🛣 Jan 31, 2025
@willguibr
Copy link
Member

@snowman386 Issue is now fixed in the minor release v2.0.1

Zscaler DevRel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🚀 Shipped
Development

Successfully merging a pull request may close this issue.

2 participants