dtan4 / terraforming

Export existing AWS resources to Terraform style (tf, tfstate) / No longer actively maintained
http://terraforming.dtan4.net/
MIT License
4.29k stars 659 forks source link

sg in terraform.tfstate missing IPv6 #325

Closed rkulagowski closed 5 years ago

rkulagowski commented 7 years ago

The tfstate file generated by terraformer doesn't include an IPv6 ingress rule, so terraform plan always shows that the security group will be modified to remove the IPv6 rule.

tfstate file:

"ingress.#": "4",

terraform plan:

ingress.#:                             "5" => "4"

and then the actual removal block:

    ingress.3655358858.cidr_blocks.#:      "0" => "0"
    ingress.3655358858.from_port:          "500" => "0"
    ingress.3655358858.ipv6_cidr_blocks.#: "1" => "0"
    ingress.3655358858.ipv6_cidr_blocks.0: "::/0" => ""
    ingress.3655358858.protocol:           "udp" => ""
    ingress.3655358858.security_groups.#:  "0" => "0"
    ingress.3655358858.self:               "false" => "false"
    ingress.3655358858.to_port:            "500" => "0"
dtan4 commented 5 years ago

This was introduced by https://github.com/dtan4/terraforming/pull/438 .