This commit is contained in:
mr-vercetti
2022-08-26 14:17:46 +02:00
parent 92afe542a3
commit ffdb539b4d
7 changed files with 96 additions and 12 deletions

View File

@ -27,14 +27,6 @@ resource "aws_security_group" "this" {
cidr_blocks = ["0.0.0.0/0"]
}
ingress {
description = "HTTPS"
from_port = 443
to_port = 443
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}
egress {
from_port = 0
to_port = 0
@ -72,6 +64,7 @@ resource "aws_autoscaling_group" "this" {
vpc_zone_identifier = var.VPC_SUBNETS_IDS
health_check_type = "ELB"
health_check_grace_period = "90"
target_group_arns = var.ALB_TARGET_GROUP_ARNS
tag {
key = "Name"

View File

@ -27,4 +27,9 @@ variable "ASG_MIN_SIZE" {
variable "ASG_MAX_SIZE" {
type = number
}
# ALB
variable "ALB_TARGET_GROUP_ARNS" {
type = list(string)
}