Skip to content

Commit

Permalink
set up asg for testing boe install ansible (#5539)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsweetman authored Apr 2, 2024
1 parent 1cb8e6d commit b2920d7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,16 @@ locals {
})
# cloudwatch_metric_alarms = local.ec2_cloudwatch_metric_alarms.boe off for now
tags = {
os-type = "Linux"
component = "onr_boe"
ami = "base_rhel_6_10"
os-type = "Linux"
component = "boe"
server-type = "onr-boe"
}
# FIXME: ebs_volumes list is NOT YET CORRECT and will need to change
ebs_volumes = {
"/dev/sda1" = { type = "gp3", size = 128 } # root volume
"/dev/sdb" = { type = "gp3", size = 128 } # /u01
"/dev/sdc" = { type = "gp3", size = 128 } # /u02
}
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,26 @@ locals {
# })
# })
# }

baseline_ec2_autoscaling_groups = {
dev-boe-asg = merge(local.defaults_boe_ec2.config, {
config = merge(local.defaults_boe_ec2.config, {
availability_zone = "${local.region}a"
})
instance = merge(local.defaults_boe_ec2.instance, {
instance_type = "t3.large"
})
user_data_cloud_init = merge(module.baseline_presets.ec2_instance.user_data_cloud_init.ssm_agent_and_ansible, {
args = merge(module.baseline_presets.ec2_instance.user_data_cloud_init.ssm_agent_and_ansible.args, {
branch = "main"
})
})
autoscaling_group = merge(module.baseline_presets.ec2_autoscaling_group.default, {
desired_capacity = 0
})
autoscaling_schedules = module.baseline_presets.ec2_autoscaling_schedules.working_hours
})
}
}
}

0 comments on commit b2920d7

Please sign in to comment.