Przeglądaj źródła

removed nuxeo references on ha_instance

Roberto Barbosa 8 lat temu
rodzic
commit
121903e872
3 zmienionych plików z 7 dodań i 8 usunięć
  1. 2 3
      ha_instance/asg.tf
  2. 2 2
      ha_instance/dns.tf
  3. 3 3
      ha_instance/outputs.tf

+ 2 - 3
ha_instance/asg.tf

@@ -1,7 +1,6 @@
 /***************************************************
 * AUTO SCALING GROUP FOR NUXEO INSTANCE
 ****************************************************/
-
 resource "aws_launch_configuration" "main" {
     name                        = "${var.stack_name}-${var.instance_role}"
     image_id                    = "${var.ami}"
@@ -28,7 +27,7 @@ resource "aws_autoscaling_group" "main" {
 
     health_check_grace_period = 60
     health_check_type         = "EC2"
-    launch_configuration      = "${aws_launch_configuration.main}"
+    launch_configuration      = "${aws_launch_configuration.main.id}"
 
     max_size                  = "${var.asg_max}"
     min_size                  = "${var.asg_min}"
@@ -97,4 +96,4 @@ resource "aws_iam_role_policy" "main" {
   ]
 }
 EOF
-}
+}

+ 2 - 2
ha_instance/dns.tf

@@ -7,8 +7,8 @@ resource "aws_route53_record" "nuxeo" {
   type = "A"
 
   alias {
-    name = "${aws_alb.nuxeo.dns_name}"
-    zone_id = "${aws_alb.nuxeo.zone_id}"
+    name = "${aws_alb.main.dns_name}"
+    zone_id = "${aws_alb.main.zone_id}"
     evaluate_target_health = true
   }
 }

+ 3 - 3
ha_instance/outputs.tf

@@ -1,7 +1,7 @@
 output "nuxeo_url_alb" {
-  value = "${aws_alb.nuxeo.dns_name}"
+  value = "${aws_alb.main.dns_name}"
 }
 
 output "nuxeo_url" {
-  value = "${aws_route53_record.nuxeo.fqdn}"
-}
+  value = "${aws_route53_record.main.fqdn}"
+}