mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-28 17:02:05 +03:00
demo-16
This commit is contained in:
@@ -11,7 +11,7 @@ resource "aws_autoscaling_group" "example-autoscaling" {
|
|||||||
name = "example-autoscaling"
|
name = "example-autoscaling"
|
||||||
vpc_zone_identifier = ["${aws_subnet.main-public-1.id}", "${aws_subnet.main-public-2.id}"]
|
vpc_zone_identifier = ["${aws_subnet.main-public-1.id}", "${aws_subnet.main-public-2.id}"]
|
||||||
launch_configuration = "${aws_launch_configuration.example-launchconfig.name}"
|
launch_configuration = "${aws_launch_configuration.example-launchconfig.name}"
|
||||||
min_size = 1
|
min_size = 2
|
||||||
max_size = 2
|
max_size = 2
|
||||||
health_check_grace_period = 300
|
health_check_grace_period = 300
|
||||||
health_check_type = "ELB"
|
health_check_type = "ELB"
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
output "ELB" {
|
||||||
|
value = "${aws_elb.my-elb.dns_name}"
|
||||||
|
}
|
||||||
@@ -20,7 +20,7 @@ resource "aws_security_group" "myinstance" {
|
|||||||
from_port = 80
|
from_port = 80
|
||||||
to_port = 80
|
to_port = 80
|
||||||
protocol = "tcp"
|
protocol = "tcp"
|
||||||
security_groups = ["${aws_security_group.elb-securitygroup.name}"]
|
security_groups = ["${aws_security_group.elb-securitygroup.id}"]
|
||||||
}
|
}
|
||||||
|
|
||||||
tags {
|
tags {
|
||||||
|
|||||||
Reference in New Issue
Block a user