Advertisement
Guest User

Untitled

a guest
Aug 31st, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.19 KB | None | 0 0
  1. {
  2. "AWSTemplateFormatVersion":"2010-09-09",
  3. "Description":"",
  4. "Parameters":{
  5. "Environment":{
  6. "Description":"Environment (Dev [dev], QA [qa], Staging [stage], Production [prod].",
  7. "Type":"String",
  8. "Default":"dev"
  9. },
  10. "QueueName":{
  11. "Description":"",
  12. "Type":"String",
  13. "Default":"trolley-sync-queue"
  14. },
  15. "DelaySeconds":{
  16. "Description":"",
  17. "Type":"Number",
  18. "Default":"0"
  19. },
  20. "MaximumMessageSize":{
  21. "Description":"",
  22. "Type":"Number",
  23. "Default":"256"
  24. },
  25. "MessageRetentionPeriod":{
  26. "Description":"",
  27. "Type":"Number",
  28. "Default":"604800"
  29. },
  30. "ReceiveMessageWaitTimeSeconds":{
  31. "Description":"",
  32. "Type":"Number",
  33. "Default":"0"
  34. },
  35. "VisibilityTimeout":{
  36. "Description":"",
  37. "Type":"Number",
  38. "Default":"30"
  39. },
  40. "DeadLetterQueueReceiveCount":{
  41. "Description":"",
  42. "Type":"Number",
  43. "Default":"3"
  44. }
  45. },
  46. "Resources":{
  47. "TrolleySQSDeadLetterQueue":{
  48. "Type":"AWS::SQS::Queue",
  49. "Properties":{
  50. "QueueName":{
  51. "Fn::Join":[
  52. "-",
  53. [
  54. {
  55. "Ref":"QueueName"
  56. },
  57. {
  58. "Ref":"Environment"
  59. },
  60. "dead-letter"
  61. ]
  62. ]
  63. }
  64. },
  65. "TrolleySQSQueue":{
  66. "Type":"AWS::SQS::Queue",
  67. "Properties":{
  68. "QueueName":{
  69. "Fn::Join":[
  70. "-",
  71. [
  72. {
  73. "Ref":"QueueName"
  74. },
  75. {
  76. "Ref":"Environment"
  77. }
  78. ]
  79. ]
  80. },
  81. "DelaySeconds":{
  82. "Ref":"DelaySeconds"
  83. },
  84. "MaximumMessageSize":{
  85. "Ref":"DelaySeconds"
  86. },
  87. "MessageRetentionPeriod":{
  88. "Ref":"MessageRetentionPeriod"
  89. },
  90. "ReceiveMessageWaitTimeSeconds":{
  91. "Ref":"ReceiveMessageWaitTimeSeconds"
  92. },
  93. "RedrivePolicy":{
  94. "deadLetterTargetArn":{
  95. "Fn::GetAtt":[
  96. "TrolleySQSDeadLetterQueue",
  97. "Arn"
  98. ]
  99. },
  100. "maxReceiveCount":{
  101. "Ref":"DeadLetterQueueReceiveCount"
  102. }
  103. },
  104. "VisibilityTimeout":{
  105. "Ref":"VisibilityTimeout"
  106. }
  107. },
  108. "Outputs":{
  109. "TrolleySQSQueueName":{
  110. "Description":"",
  111. "Value":{
  112. "Fn::GetAtt":[
  113. "TrolleySQSQueue",
  114. "QueueName"
  115. ]
  116. }
  117. },
  118. "TrolleySQSQueueARN":{
  119. "Description":"ARN of the source queue",
  120. "Value":{
  121. "Fn::GetAtt":[
  122. "TrolleySQSQueue",
  123. "Arn"
  124. ]
  125. }
  126. },
  127. "TrolleySQSDeadLetterQueueName":{
  128. "Description":"",
  129. "Value":{
  130. "Fn::GetAtt":[
  131. "TrolleySQSDeadLetterQueueName",
  132. "QueueName"
  133. ]
  134. }
  135. },
  136. "TrolleySQSDeadLetterQueueARN":{
  137. "Description":"ARN of the dead letter queue",
  138. "Value":{
  139. "Fn::GetAtt":[
  140. "MyDeadLetterQueue",
  141. "Arn"
  142. ]
  143. }
  144. }
  145. }
  146. }
  147. }
  148. }
  149. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement