Advertisement
Guest User

Untitled

a guest
Nov 24th, 2020
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. Error: Invalid index
  2.  
  3. on ../../modules/sns/main.tf line 18, in resource "aws_sns_topic_policy" "CW-alerts-topic-policy":
  4. 18: arn = aws_sns_topic.CW-alerts[count.index].arn
  5. |----------------
  6. | aws_sns_topic.CW-alerts is empty tuple
  7. | count.index is 2
  8.  
  9. The given key does not identify an element in this collection value.
  10.  
  11.  
  12. Error: Invalid index
  13.  
  14. on ../../modules/sns/main.tf line 18, in resource "aws_sns_topic_policy" "CW-alerts-topic-policy":
  15. 18: arn = aws_sns_topic.CW-alerts[count.index].arn
  16. |----------------
  17. | aws_sns_topic.CW-alerts is empty tuple
  18. | count.index is 0
  19.  
  20. The given key does not identify an element in this collection value.
  21.  
  22.  
  23. Error: Invalid index
  24.  
  25. on ../../modules/sns/main.tf line 18, in resource "aws_sns_topic_policy" "CW-alerts-topic-policy":
  26. 18: arn = aws_sns_topic.CW-alerts[count.index].arn
  27. |----------------
  28. | aws_sns_topic.CW-alerts is empty tuple
  29. | count.index is 1
  30.  
  31. The given key does not identify an element in this collection value.
  32.  
  33.  
  34. Error: Invalid index
  35.  
  36. on ../../modules/sns/outputs.tf line 18, in resource "null_resource" "topic-mappings":
  37. 18: topic-id = aws_sns_topic.CW-alerts[count.index].id
  38. |----------------
  39. | aws_sns_topic.CW-alerts is empty tuple
  40. | count.index is 2
  41.  
  42. The given key does not identify an element in this collection value.
  43.  
  44.  
  45. Error: Invalid index
  46.  
  47. on ../../modules/sns/outputs.tf line 18, in resource "null_resource" "topic-mappings":
  48. 18: topic-id = aws_sns_topic.CW-alerts[count.index].id
  49. |----------------
  50. | aws_sns_topic.CW-alerts is empty tuple
  51. | count.index is 0
  52.  
  53. The given key does not identify an element in this collection value.
  54.  
  55.  
  56. Error: Invalid index
  57.  
  58. on ../../modules/sns/outputs.tf line 18, in resource "null_resource" "topic-mappings":
  59. 18: topic-id = aws_sns_topic.CW-alerts[count.index].id
  60. |----------------
  61. | aws_sns_topic.CW-alerts is empty tuple
  62. | count.index is 1
  63.  
  64. The given key does not identify an element in this collection value.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement