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

Import azurerm_firewall_policy Error #13857

Closed
giuperry78 opened this issue Oct 22, 2021 · 4 comments · Fixed by #13862
Closed

Import azurerm_firewall_policy Error #13857

giuperry78 opened this issue Oct 22, 2021 · 4 comments · Fixed by #13862

Comments

@giuperry78
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform (and AzureRM Provider) Version

Terraform v1.0.9
on windows_amd64

  • provider registry.terraform.io/hashicorp/azurerm v2.82.0

Affected Resource(s)

  • azurerm_firewall_policy

Terraform Configuration Files

resource "azurerm_firewall_policy" "xxxxx" {
  name                = "xxxxx"
  resource_group_name = local.resource_group_name
  location            = local.location
  dns {
    network_rule_fqdn_enabled = false
    proxy_enabled             = true
    servers                   = []
  }

  threat_intelligence_allowlist {
    fqdns        = []
    ip_addresses = []
  }
  sku                      = "Premium"
  threat_intelligence_mode = "Alert"
  lifecycle {
    ignore_changes = [
      tags
    ]
  }

}

Debug Output

output.log

Panic Output

panic: runtime error: invalid memory address or nil pointer dereference
crash.log
Error: The terraform-provider-azurerm_v2.82.0_x5.exe plugin crashed!

Expected Behaviour

Import successful!

The resources that were imported are shown above. These resources are now in
your Terraform state and will henceforth be managed by Terraform.

Actual Behaviour

Error: The terraform-provider-azurerm_v2.82.0_x5.exe plugin crashed!

Steps to Reproduce

  1. Create an Firewall Policy via Azure Portal
  2. Insert a resource of type azurerm_firewall_policy in your Terraform project
  3. terraform import

Important Factoids

I have tried with various versions of the azurerm provider and this error occurs from version 2.74 to 2.82.
With version 2.73 the import of the firewall_policy is successful

References

Maybe this PR should be analyzed

@aristosvo
Copy link
Collaborator

aristosvo commented Oct 22, 2021

Hi @giuperry78! Thanks for the issue, I will take a look if I can fix this one quickly.

Seems like a nil check is missing here on input.Configuration,

if overrides := input.Configuration.SignatureOverrides; overrides != nil {

@giuperry78
Copy link
Author

Thanks @aristosvo ❤️

@github-actions
Copy link

This functionality has been released in v2.83.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
5 participants