Skip to content

Commit

Permalink
Merge pull request #13 from silinternational/asg-tags
Browse files Browse the repository at this point in the history
Release 0.7.0 -- add a new variable to assign tags to the ASG
  • Loading branch information
briskt authored Aug 27, 2024
2 parents 9727498 + 4669478 commit 1cfbc6a
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 @@ -43,6 +43,9 @@ module "full" {
timeout = 10
unhealthy_threshold = 3
}
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 @@ -101,6 +101,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 1cfbc6a

Please sign in to comment.