Resource 'data.template_file.user_data' does not have attribute 'rendered'

北城以北 提交于 2019-12-11 08:14:19

问题


Terraform Version : v0.11.8

Use case

Try to terminate the resources using terraform, got error while running output command.

Code:

output "frontend_rendered" {
  value = "${data.template_file.user_data.rendered}"
}

Debug Output

module.test.output.test_rendered: Resource 'data.template_file.user_data' does not have attribute 'rendered' for variable 'data.template_file.user_data.rendered'

Expected Behavior

Termination without any error.

Additional Context

This issue came after i upgraded terraform from v0.11.4 to v0.11.8 and i have also updated the aws provider to latest 1.33.0

Any help?

Thanks!


回答1:


Finally i was able to find the solution.

After Terraform v0.11.4, we shouldn't evaluate unused outputs during a full destroy operation.



来源:https://stackoverflow.com/questions/52035992/resource-data-template-file-user-data-does-not-have-attribute-rendered

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!