Skip to content

Commit

Permalink
Convert to TF 0.12. Add Security Group rules. Add tests. Add CodeFres…
Browse files Browse the repository at this point in the history
…h test pipeline
  • Loading branch information
aknysh committed Dec 31, 2019
1 parent da3844e commit 6a0293b
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -157,23 +157,19 @@ resource "aws_cloudwatch_metric_alarm" "cache_memory" {
}

module "dns" {
source = "git::https://github.com/cloudposse/terraform-aws-route53-cluster-hostname.git?ref=tags/0.3.0"
enabled = var.enabled && var.zone_id != "" ? true : false
namespace = var.namespace
stage = var.stage
name = var.name
ttl = 60
zone_id = var.zone_id
records = aws_elasticache_cluster.default.cluster_address[*]
source = "git::https://github.com/cloudposse/terraform-aws-route53-cluster-hostname.git?ref=tags/0.3.0"
enabled = var.enabled && var.zone_id != "" ? true : false
name = var.name
ttl = 60
zone_id = var.zone_id
records = aws_elasticache_cluster.default.cluster_address[*]
}

module "dns_config" {
source = "git::https://github.com/cloudposse/terraform-aws-route53-cluster-hostname.git?ref=tags/0.3.0"
enabled = var.enabled && var.zone_id != "" ? true : false
namespace = var.namespace
stage = var.stage
name = "config.${var.name}"
ttl = 60
zone_id = var.zone_id
records = aws_elasticache_cluster.default.configuration_endpoint[*]
source = "git::https://github.com/cloudposse/terraform-aws-route53-cluster-hostname.git?ref=tags/0.3.0"
enabled = var.enabled && var.zone_id != "" ? true : false
name = "config.${var.name}"
ttl = 60
zone_id = var.zone_id
records = aws_elasticache_cluster.default.configuration_endpoint[*]
}

0 comments on commit 6a0293b

Please sign in to comment.