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

LaunchConfiguration contains base64 in user_data #461

Open nijave opened 5 years ago

nijave commented 5 years ago

I run terraforming lc and see the following:

resource "aws_launch_configuration" "lc" {
    name                        = "some-cluster-launch-conf"
    image_id                    = "ami-0796380bc6e51157f"
    instance_type               = "t3.large"
    iam_instance_profile        = "some-instance-profile"
    security_groups             = ["sg-1234567"]
    user_data                   = "IyEvYmluL2Jhc2gKZWNobyBFQ1NfQ0xVU1RFUj1zb21lLWNsdXN0ZXIgPj4gL2V0Yy9lY3MvZWNzLmNvbmZpZwplY2hvIEVDU19JTlNUQU5DRV9BVFRSSUJVVEVTPSd7Imhvc3QtYWN0aXZlIjoidHJ1ZSJ9JyA+PiAvZXRjL2Vjcy9lY3MuY29uZmlnOwo="
    enable_monitoring           = true
    ebs_optimized               = false

}

(some IDs modified)

It looks like this should be user_data_base64 instead of user_data https://www.terraform.io/docs/providers/aws/r/launch_configuration.html#user_data_base64