Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.10 KB | None | 0 0
  1. 
  2. Error: Missing resource instance key
  3.  
  4.  on aws-backup/main.tf line 175, in resource "aws_iam_role_policy_attachment" "itm_aws_backup_role_attach":
  5. 175: role = "${aws_iam_role.itm_aws_backup_role.name}"
  6. 
  7. Because aws_iam_role.itm_aws_backup_role has "count" set, its attributes must
  8. be accessed on specific instances.
  9.  
  10. For example, to correlate with indices of a referring resource, use:
  11. aws_iam_role.itm_aws_backup_role[count.index]
  12. 
  13. 
  14. Error: Missing resource instance key
  15.  
  16.  on aws-backup/main.tf line 176, in resource "aws_iam_role_policy_attachment" "itm_aws_backup_role_attach":
  17. 176: policy_arn = "${aws_iam_policy.itm_aws_backup_policy.arn}"
  18. 
  19. Because aws_iam_policy.itm_aws_backup_policy has "count" set, its attributes
  20. must be accessed on specific instances.
  21.  
  22. For example, to correlate with indices of a referring resource, use:
  23. aws_iam_policy.itm_aws_backup_policy[count.index]
  24. 
  25. 
  26. Error: Missing resource instance key
  27.  
  28.  on aws-backup/main.tf line 182, in resource "aws_backup_vault" "itm_backup":
  29. 182: kms_key_arn = "${aws_kms_key.itm_kms_aws_backup.arn}"
  30. 
  31. Because aws_kms_key.itm_kms_aws_backup has "count" set, its attributes must be
  32. accessed on specific instances.
  33.  
  34. For example, to correlate with indices of a referring resource, use:
  35. aws_kms_key.itm_kms_aws_backup[count.index]
  36. 
  37. 
  38. Error: Missing resource instance key
  39.  
  40.  on aws-backup/main.tf line 241, in resource "null_resource" "delay":
  41. 241: "before" = "${aws_iam_role.itm_aws_backup_role.id}"
  42. 
  43. Because aws_iam_role.itm_aws_backup_role has "count" set, its attributes must
  44. be accessed on specific instances.
  45.  
  46. For example, to correlate with indices of a referring resource, use:
  47. aws_iam_role.itm_aws_backup_role[count.index]
  48. 
  49. 
  50. Error: Incorrect attribute value type
  51.  
  52.  on patch-manager/Common-Baselines.tf line 13, in resource "aws_ssm_patch_baseline" "daily_all":
  53. 13: values = ["${var.daily_all_patch_classification}"]
  54. 
  55. Inappropriate value for attribute "values": element 0: string required.
  56. 
  57. 
  58. Error: Incorrect attribute value type
  59.  
  60.  on patch-manager/Common-Baselines.tf line 29, in resource "aws_ssm_patch_baseline" "daily_security":
  61. 29: values = ["${var.daily_security_patch_classification}"]
  62. 
  63. Inappropriate value for attribute "values": element 0: string required.
  64. 
  65. 
  66. Error: Incorrect attribute value type
  67.  
  68.  on patch-manager/Common-Baselines.tf line 45, in resource "aws_ssm_patch_baseline" "weekly_security":
  69. 45: values = ["${var.weekly_security_patch_classification_default}"]
  70. 
  71. Inappropriate value for attribute "values": element 0: string required.
  72. 
  73. 
  74. Error: Incorrect attribute value type
  75.  
  76.  on patch-manager/Common-Baselines.tf line 54, in resource "aws_ssm_patch_baseline" "weekly_security":
  77. 54: values = ["${var.weekly_security_patch_classification_important}"]
  78. 
  79. Inappropriate value for attribute "values": element 0: string required.
  80. 
  81. 
  82. Error: Incorrect attribute value type
  83.  
  84.  on patch-manager/Common-Baselines.tf line 58, in resource "aws_ssm_patch_baseline" "weekly_security":
  85. 58: values = ["${var.weekly_security_patch_severity_important}"]
  86. 
  87. Inappropriate value for attribute "values": element 0: string required.
  88. 
  89. 
  90. Error: Incorrect attribute value type
  91.  
  92.  on patch-manager/Common-Baselines.tf line 66, in resource "aws_ssm_patch_baseline" "weekly_security":
  93. 66: values = ["${var.weekly_security_patch_classification_critical}"]
  94. 
  95. Inappropriate value for attribute "values": element 0: string required.
  96. 
  97. 
  98. Error: Incorrect attribute value type
  99.  
  100.  on patch-manager/Common-Baselines.tf line 70, in resource "aws_ssm_patch_baseline" "weekly_security":
  101. 70: values = ["${var.weekly_security_patch_severity_critical}"]
  102. 
  103. Inappropriate value for attribute "values": element 0: string required.
  104. 
  105. 
  106. Error: Incorrect attribute value type
  107.  
  108.  on patch-manager/Common-Maintenance-Window.tf line 69, in resource "aws_ssm_maintenance_window_target" "MW-target":
  109. 69: values = ["${split(",",lookup(local.rules[element(keys(local.rules), count.index)], "patch_groups"))}"]
  110. 
  111. Inappropriate value for attribute "values": element 0: string required.
  112. 
  113. 
  114. Error: Missing resource instance key
  115.  
  116.  on session-manager/main.tf line 4, in resource "aws_cloudwatch_log_group" "session_manager_lg":
  117. 4: kms_key_id = "${aws_kms_key.itm-cloudwatch.arn}"
  118. 
  119. Because aws_kms_key.itm-cloudwatch has "count" set, its attributes must be
  120. accessed on specific instances.
  121.  
  122. For example, to correlate with indices of a referring resource, use:
  123. aws_kms_key.itm-cloudwatch[count.index]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement