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

aws_iam_instance_profile deprecated `roles` #374

Closed koooge closed 7 years ago

koooge commented 7 years ago

I found error when I exec terraform plan.

aws_iam_instance_profile.<name>: "roles": [DEPRECATED] Use `role` instead. Only a single role can be passed to an IAM Instance Profile

and aws_iam_instance_profile.tf

resource "aws_iam_instance_profile" "<name>" {
    name  = "<name>"
    path  = "/"
    roles = []
}
chroju commented 7 years ago

Hello. I am troubled with the same issue, so I sent a PR to fix it.

koooge commented 7 years ago

thanks @chroju 🙏 I close this issue.