module "indexer0" { source = "../../../submodules/splunk/splunk_indexer_asg" name = var.prefix asg_number = 0 asg_name = "${local.asg_name}-0" launch_conf_name = "${local.launch_config_name}-0" volume_sizes = local.volume_sizes idx_instance_type = local.instance_type user_data = data.template_cloudinit_config.cloud-init.rendered indexer_security_group_ids = [data.aws_security_group.typical-host.id, aws_security_group.indexer_security_group.id] vpc_zone_identifier = [var.private_subnets[0]] key_name = "msoc-build" min_size = local.splunk_asg_sizes[0] max_size = local.splunk_asg_sizes[0] iam_instance_profile = module.instance_profile.profile_id common_services_account = var.common_services_account tags = merge(local.standard_tags, var.tags, var.instance_tags[0], { Name = "${local.asg_name}-0" }) # 2022-04-22: FTD - Debugging dying indexers in test # 2022-07-18: FTD - This didn't help isolate the problem, or the problem hasn't recurred. #suspended_processes = var.environment == "test" ? ["Terminate"] : [] } module "indexer1" { source = "../../../submodules/splunk/splunk_indexer_asg" name = var.prefix asg_number = 1 asg_name = "${local.asg_name}-1" launch_conf_name = "${local.launch_config_name}-1" volume_sizes = local.volume_sizes idx_instance_type = local.instance_type user_data = data.template_cloudinit_config.cloud-init.rendered indexer_security_group_ids = [data.aws_security_group.typical-host.id, aws_security_group.indexer_security_group.id] vpc_zone_identifier = [var.private_subnets[1]] key_name = "msoc-build" min_size = local.splunk_asg_sizes[1] max_size = local.splunk_asg_sizes[1] iam_instance_profile = module.instance_profile.profile_id common_services_account = var.common_services_account tags = merge(local.standard_tags, var.tags, var.instance_tags[1], { Name = "${local.asg_name}-1" }) # 2022-04-22: FTD - Debugging dying indexers in test # 2022-07-18: FTD - This didn't help isolate the problem, or the problem hasn't recurred. #suspended_processes = var.environment == "test" ? ["Terminate"] : [] } module "indexer2" { source = "../../../submodules/splunk/splunk_indexer_asg" name = var.prefix asg_number = 2 asg_name = "${local.asg_name}-2" launch_conf_name = "${local.launch_config_name}-2" volume_sizes = local.volume_sizes idx_instance_type = local.instance_type user_data = data.template_cloudinit_config.cloud-init.rendered indexer_security_group_ids = [data.aws_security_group.typical-host.id, aws_security_group.indexer_security_group.id] vpc_zone_identifier = [var.private_subnets[2]] key_name = "msoc-build" min_size = local.splunk_asg_sizes[2] max_size = local.splunk_asg_sizes[2] iam_instance_profile = module.instance_profile.profile_id common_services_account = var.common_services_account tags = merge(local.standard_tags, var.tags, var.instance_tags[2], { Name = "${local.asg_name}-2" }) # 2022-04-22: FTD - Debugging dying indexers in test # 2022-07-18: FTD - This didn't help isolate the problem, or the problem hasn't recurred. #suspended_processes = var.environment == "test" ? ["Terminate"] : [] }