Skip to content

Commit

Permalink
Merge branch 'main' into log-retention
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt authored Aug 27, 2024
2 parents 25e17da + 1cfbc6a commit a00aaab
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ module "full" {
unhealthy_threshold = 3
}
log_retention_in_days = 60
asg_tags = {
foo = "bar",
}
}

provider "aws" {
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ variable "asg_max_size" {
type = number
}

variable "asg_tags" {
description = "Tags to assign to the Autoscaling Group and EC2 instances"
default = {}
type = map(string)
}

variable "instance_type" {
description = "See: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#AvailableInstanceTypes"
default = "t2.micro"
Expand Down
1 change: 1 addition & 0 deletions vpc.tf
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,5 @@ module "ecsasg" {
ssh_key_name = var.ssh_key_name
use_amazon_linux2 = true
instance_type = var.instance_type
tags = var.asg_tags
}

0 comments on commit a00aaab

Please sign in to comment.