dtan4 / terraforming

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

Command terraforming dbpg generates invalid configuration #448

Closed memberbetty closed 5 years ago

memberbetty commented 5 years ago

terraforming dbpg generates values

with an empty string instead of a valid value.

Example of invalid Terraform code being generated:

    parameter {
        name         = "geqo_pool_size"
        value        = ""
        apply_method = "pending-reboot"
    }
dtan4 commented 5 years ago

It works well in my environment. If the parameter has a value, it will be injected correctly.

image

$ bundle exec bin/terraforming dbpg | grep -A 3 -B 1 basedir
    parameter {
        name         = "basedir"
        value        = "/rdsdbbin/oscar"
        apply_method = "pending-reboot"
    }

Additionally, it's usual that parameter doesn't have any value.

image

If this is not a correct answer to your question, please reopen this issue. Thanks!