Skip to content

Commit

Permalink
Fixing deprecated functions of terraform 0.15+
Browse files Browse the repository at this point in the history
  • Loading branch information
adenot committed Jun 9, 2021
1 parent dfb80b2 commit fbb54ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion alb-target-group.tf
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ resource "aws_lb_listener_rule" "redirects" {

condition {
host_header {
values = list(element(split(",", var.hostname_redirects), count.index))
values = [element(split(",", var.hostname_redirects), count.index)]
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions codedeploy.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ resource "aws_codedeploy_deployment_group" "ecs" {
load_balancer_info {
target_group_pair_info {
prod_traffic_route {
listener_arns = list(var.alb_listener_https_arn)
listener_arns = [var.alb_listener_https_arn]
}

test_traffic_route {
listener_arns = list(var.test_traffic_route_listener_arn)
listener_arns = [var.test_traffic_route_listener_arn]
}

target_group {
Expand Down
2 changes: 1 addition & 1 deletion route53-record.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ resource "aws_route53_record" "hostnames" {
name = var.hostnames[count.index]
type = "CNAME"
ttl = "300"
records = list(var.alb_dns_name)
records = [var.alb_dns_name]
}

data "aws_lb" "alb_selected" {
Expand Down

0 comments on commit fbb54ee

Please sign in to comment.