PageRenderTime 43ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 1ms

/AIM-MSTR-TargetGroups.yml

https://bitbucket.org/dmehlberg/bit-lb
YAML | 265 lines | 234 code | 26 blank | 5 comment | 0 complexity | 61d42189cb3495ccd5e3d210a97dda67 MD5 | raw file
  1. Description: For AIM (aka Assetworks and AimIQ)
  2. This CloudFormation (CF) Script creates n TargetGroups that will be used via the Output section below,
  3. by another CF script (AIM-MSTR-ALB.yml) that creates the Test/Prod ALB for AIM/Assetworks and AIMiq.
  4. Parameters:
  5. VPC:
  6. Type: AWS::EC2::VPC::Id
  7. Description: Choose which VPC the Application Load Balancer should be deployed to
  8. Resources:
  9. #The TargetGroups are created here. Two TargetGroups will be used in the Listener part of the ALB as the DefaultTargetGroup.
  10. #The Test TargetGroups will be used as the DefaultTargetGroups. The Dev TargetGroups will be used in the ListenerRule part of each Listener,
  11. #by matching a URL string traffic will be sent to the Dev TargetGroups.
  12. TargetGroupAssetworksDev443ALBmcf:
  13. Type: "AWS::ElasticLoadBalancingV2::TargetGroup"
  14. Properties:
  15. HealthCheckIntervalSeconds: 10
  16. HealthCheckPath: /
  17. HealthCheckPort: 8080
  18. HealthCheckProtocol: HTTP
  19. HealthCheckTimeoutSeconds: 5
  20. HealthyThresholdCount: 2
  21. Matcher:
  22. HttpCode: '200'
  23. Name: Assetworks-Dev-443-ALB-mcf
  24. Port: 8080
  25. Protocol: HTTP
  26. TargetGroupAttributes:
  27. - Key: deregistration_delay.timeout_seconds
  28. Value: '300'
  29. UnhealthyThresholdCount: 2
  30. VpcId:
  31. Ref: VPC
  32. TargetGroupAssetworksTest443ALBmcf:
  33. Type: "AWS::ElasticLoadBalancingV2::TargetGroup"
  34. Properties:
  35. HealthCheckIntervalSeconds: 10
  36. HealthCheckPath: /
  37. HealthCheckPort: 8080
  38. HealthCheckProtocol: HTTP
  39. HealthCheckTimeoutSeconds: 5
  40. HealthyThresholdCount: 2
  41. Matcher:
  42. HttpCode: '200'
  43. Name: Assetworks-Test-443-ALB-mcf
  44. Port: 8080
  45. Protocol: HTTP
  46. TargetGroupAttributes:
  47. - Key: deregistration_delay.timeout_seconds
  48. Value: '300'
  49. UnhealthyThresholdCount: 2
  50. VpcId:
  51. Ref: VPC
  52. TargetGroupAssetworks443ALBmcf:
  53. Type: "AWS::ElasticLoadBalancingV2::TargetGroup"
  54. Properties:
  55. HealthCheckIntervalSeconds: 10
  56. HealthCheckPath: /
  57. HealthCheckPort: 8080
  58. HealthCheckProtocol: HTTP
  59. HealthCheckTimeoutSeconds: 5
  60. HealthyThresholdCount: 2
  61. Matcher:
  62. HttpCode: '200'
  63. Name: Assetworks-443-ALB-mcf
  64. Port: 8080
  65. Protocol: HTTP
  66. TargetGroupAttributes:
  67. - Key: deregistration_delay.timeout_seconds
  68. Value: '300'
  69. UnhealthyThresholdCount: 2
  70. VpcId:
  71. Ref: VPC
  72. TargetGroupaim1dev8443ALBmcf:
  73. Type: "AWS::ElasticLoadBalancingV2::TargetGroup"
  74. Properties:
  75. HealthCheckIntervalSeconds: 10
  76. HealthCheckPath: /
  77. HealthCheckPort: 8081
  78. HealthCheckProtocol: HTTP
  79. HealthCheckTimeoutSeconds: 5
  80. HealthyThresholdCount: 2
  81. Matcher:
  82. HttpCode: '200'
  83. Name: aim1-dev-8443-ALB-mcf
  84. Port: 8081
  85. Protocol: HTTP
  86. TargetGroupAttributes:
  87. - Key: deregistration_delay.timeout_seconds
  88. Value: '300'
  89. UnhealthyThresholdCount: 2
  90. VpcId:
  91. Ref: VPC
  92. TargetGroupaim1test8443ALBmcf:
  93. Type: "AWS::ElasticLoadBalancingV2::TargetGroup"
  94. Properties:
  95. HealthCheckIntervalSeconds: 10
  96. HealthCheckPath: /
  97. HealthCheckPort: 8081
  98. HealthCheckProtocol: HTTP
  99. HealthCheckTimeoutSeconds: 5
  100. HealthyThresholdCount: 2
  101. Matcher:
  102. HttpCode: '200'
  103. Name: aim1-test-8443-ALB-mcf
  104. Port: 8081
  105. Protocol: HTTP
  106. TargetGroupAttributes:
  107. - Key: deregistration_delay.timeout_seconds
  108. Value: '300'
  109. UnhealthyThresholdCount: 2
  110. VpcId:
  111. Ref: VPC
  112. TargetGroupaim18443ALBmcf:
  113. Type: "AWS::ElasticLoadBalancingV2::TargetGroup"
  114. Properties:
  115. HealthCheckIntervalSeconds: 10
  116. HealthCheckPath: /
  117. HealthCheckPort: 8081
  118. HealthCheckProtocol: HTTP
  119. HealthCheckTimeoutSeconds: 5
  120. HealthyThresholdCount: 2
  121. Matcher:
  122. HttpCode: '200'
  123. Name: aim1-8443-ALB-mcf
  124. Port: 8081
  125. Protocol: HTTP
  126. TargetGroupAttributes:
  127. - Key: deregistration_delay.timeout_seconds
  128. Value: '300'
  129. UnhealthyThresholdCount: 2
  130. VpcId:
  131. Ref: VPC
  132. TargetGroupaimiqdev443ALBmcf:
  133. Type: "AWS::ElasticLoadBalancingV2::TargetGroup"
  134. Properties:
  135. HealthCheckIntervalSeconds: 10
  136. HealthCheckPath: /
  137. HealthCheckPort: 8080
  138. HealthCheckProtocol: HTTP
  139. HealthCheckTimeoutSeconds: 5
  140. HealthyThresholdCount: 2
  141. Matcher:
  142. HttpCode: '200'
  143. Name: aimiq-dev-443-ALB-mcf
  144. Port: 8080
  145. Protocol: HTTP
  146. TargetGroupAttributes:
  147. - Key: deregistration_delay.timeout_seconds
  148. Value: '300'
  149. UnhealthyThresholdCount: 2
  150. VpcId:
  151. Ref: VPC
  152. TargetGroupaimiqtest443ALBmcf:
  153. Type: "AWS::ElasticLoadBalancingV2::TargetGroup"
  154. Properties:
  155. HealthCheckIntervalSeconds: 10
  156. HealthCheckPath: /
  157. HealthCheckPort: 8080
  158. HealthCheckProtocol: HTTP
  159. HealthCheckTimeoutSeconds: 5
  160. HealthyThresholdCount: 2
  161. Matcher:
  162. HttpCode: '200'
  163. Name: aimiq-test-443-ALB-mcf
  164. Port: 8080
  165. Protocol: HTTP
  166. TargetGroupAttributes:
  167. - Key: deregistration_delay.timeout_seconds
  168. Value: '300'
  169. UnhealthyThresholdCount: 2
  170. VpcId:
  171. Ref: VPC
  172. TargetGroupaimiq443ALBmcf:
  173. Type: "AWS::ElasticLoadBalancingV2::TargetGroup"
  174. Properties:
  175. HealthCheckIntervalSeconds: 10
  176. HealthCheckPath: /
  177. HealthCheckPort: 8080
  178. HealthCheckProtocol: HTTP
  179. HealthCheckTimeoutSeconds: 5
  180. HealthyThresholdCount: 2
  181. Matcher:
  182. HttpCode: '200'
  183. Name: aimiq-443-ALB-mcf
  184. Port: 8080
  185. Protocol: HTTP
  186. TargetGroupAttributes:
  187. - Key: deregistration_delay.timeout_seconds
  188. Value: '300'
  189. UnhealthyThresholdCount: 2
  190. VpcId:
  191. Ref: VPC
  192. #The outputs are created here. Each TargetGroup needs a unique Export string that can be used by other CF scripts.
  193. #That export string is created below in the Export: Name: section.
  194. Outputs:
  195. TargetGroupARNAssetworksDev443ALBmcf:
  196. Description: The ARN of Assetworks-Dev-443-ALB-mcf Target Group
  197. Value: !Ref TargetGroupAssetworksDev443ALBmcf
  198. Export:
  199. Name: !Sub "${AWS::StackName}-TargetGroupARNAssetworksDev443ALBmcf"
  200. TargetGroupARNAssetworksTest443ALBmcf:
  201. Description: The ARN of Assetworks-Test-443-ALB-mcf Target Group
  202. Value: !Ref TargetGroupAssetworksTest443ALBmcf
  203. Export:
  204. Name: !Sub "${AWS::StackName}-TargetGroupARNAssetworksTest443ALBmcf"
  205. TargetGroupARNAssetworks443ALBmcf:
  206. Description: The ARN of Assetworks-443-ALB-mcf Target Group
  207. Value: !Ref TargetGroupAssetworks443ALBmcf
  208. Export:
  209. Name: !Sub "${AWS::StackName}-TargetGroupARNAssetworks443ALBmcf"
  210. TargetGroupARNaim1dev8443ALBmcf:
  211. Description: The ARN of aim1-Dev-443-ALB-mcf Target Group
  212. Value: !Ref TargetGroupaim1dev8443ALBmcf
  213. Export:
  214. Name: !Sub "${AWS::StackName}-TargetGroupARNaim1dev8443ALBmcf"
  215. TargetGroupARNaim1test8443ALBmcf:
  216. Description: The ARN of aim1-Test-443-ALB-mcf Target Group
  217. Value: !Ref TargetGroupaim1test8443ALBmcf
  218. Export:
  219. Name: !Sub "${AWS::StackName}-TargetGroupARNaim1test8443ALBmcf"
  220. TargetGroupARNaim18443ALBmcf:
  221. Description: The ARN of aim1-443-ALB-mcf Target Group
  222. Value: !Ref TargetGroupaim18443ALBmcf
  223. Export:
  224. Name: !Sub "${AWS::StackName}-TargetGroupARNaim18443ALBmcf"
  225. TargetGroupARNaimiqdev443ALBmcf:
  226. Description: The ARN of aimiq-dev-443-ALB-mcf Target Group
  227. Value: !Ref TargetGroupaimiqdev443ALBmcf
  228. Export:
  229. Name: !Sub "${AWS::StackName}-TargetGroupARNaimiqdev443ALBmcf"
  230. TargetGroupARNaimiqtest443ALBmcf:
  231. Description: The ARN of aimiq-test-443-ALB-mcf Target Group
  232. Value: !Ref TargetGroupaimiqtest443ALBmcf
  233. Export:
  234. Name: !Sub "${AWS::StackName}-TargetGroupARNaimiqtest443ALBmcf"
  235. TargetGroupARNaimiq443ALBmcf:
  236. Description: The ARN of aimiq-443-ALB-mcf Target Group
  237. Value: !Ref TargetGroupaimiq443ALBmcf
  238. Export:
  239. Name: !Sub "${AWS::StackName}-TargetGroupARNaimiq443ALBmcf"