Skip to content

Commit

Permalink
Merge pull request #3899 from ministryofjustice/disable-api-stop
Browse files Browse the repository at this point in the history
updating baseline ec2 variables with disable api stop attribute
  • Loading branch information
haitchison authored Nov 8, 2023
2 parents 4114dc1 + 92cf555 commit a874037
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion terraform/modules/baseline/ec2_autoscaling_group.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module "ec2_autoscaling_group" {

for_each = var.ec2_autoscaling_groups

source = "github.com/ministryofjustice/modernisation-platform-terraform-ec2-autoscaling-group?ref=v2.1.1"
source = "github.com/ministryofjustice/modernisation-platform-terraform-ec2-autoscaling-group?ref=v2.2.0"

providers = {
aws.core-vpc = aws.core-vpc
Expand Down
2 changes: 1 addition & 1 deletion terraform/modules/baseline/ec2_instance.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module "ec2_instance" {

for_each = var.ec2_instances

source = "github.com/ministryofjustice/modernisation-platform-terraform-ec2-instance?ref=v2.2.0"
source = "github.com/ministryofjustice/modernisation-platform-terraform-ec2-instance?ref=v2.3.0"

providers = {
aws.core-vpc = aws.core-vpc
Expand Down
2 changes: 2 additions & 0 deletions terraform/modules/baseline/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ variable "ec2_autoscaling_groups" {
})
instance = object({
disable_api_termination = bool
disable_api_stop = option(bool, false)
instance_type = string
key_name = string
monitoring = optional(bool, true)
Expand Down Expand Up @@ -298,6 +299,7 @@ variable "ec2_instances" {
})
instance = object({
disable_api_termination = bool
disable_api_stop = option(bool, false)
instance_type = string
key_name = string
monitoring = optional(bool, true)
Expand Down

0 comments on commit a874037

Please sign in to comment.