Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.58 KB | None | 0 0
  1. resource "aws_alb_listener" "prodapp-https" {
  2.   count = "1"
  3.   port = 443
  4.   protocol = "HTTPS"
  5.   certificate_arn = "fad"
  6.   load_balancer_arn = "aadasd"
  7.   default_action = {
  8.     target_group_arn = "asd"
  9.     type = "forward"
  10.   }
  11. }
  12.  
  13. # admin.choicefoodservices.com
  14. resource "aws_alb_listener_rule" "host_based_routing" {
  15.   listener_arn = "${aws_alb_listener.prodapp-https.arn}"
  16.   priority     = 99
  17.   action {
  18.     type             = "forward"
  19.     target_group_arn = "aasdada"
  20.   }
  21.   condition {
  22.     field  = "host-header"
  23.     values = ["admin.choicefoodservices.com"]
  24.   }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement