This tool imports your NGWAF settings to the Terraform state and generates the Terraform configuration for your NGWAF config in HCL.
Fix bug! Need to account for the case where the Terraform state is stored
remotely. Run a command like the following to generate the state file.
terraform state pull > terraform.tfstate
- Corp Rules
- Corp Lists
- Corp Signals
- Site Request Rules
- Site Rate Limiting Rules
- Site Templated Rules
- Site Lists
- Site Signals
- Site Alerts
- Site Agent Alerts
- Site Integrations
- Header Link
- Edge integration
- Space lasers
- Coffee maker
Environment variables must exist
TF_VAR_NGWAF_CORP
TF_VAR_NGWAF_EMAIL
TF_VAR_NGWAF_TOKEN
SIGSCI_CORP
SIGSCI_EMAIL
SIGSCI_TOKEN
Just run make run
make rerun