<commit_before>resource "aws_cloudformation_stack" "ecs_asg" {
  name          = "${var.asg_name}"
  template_body = "${data.template_file.cluster_asg.rendered}"

  lifecycle {
    create_before_destroy = true
  }
}

data "template_file" "cluster_asg" {
  template = "${file("${path.module}/asg.json.template")}"

  vars {
    launch_config_name  = "${aws_launch_configuration.launch_config.name}"
    vpc_zone_identifier = "${jsonencode(var.subnet_list)}"
    asg_min_size        = "${var.asg_min}"<commit_msg>adds depends_on between stack and launch config to prevent false error<commit_after>resource "aws_cloudformation_stack" "ecs_asg" {
  name          = "${var.asg_name}"
  template_body = "${data.template_file.cluster_asg.rendered}"
  depends_on    = ["aws_launch_configuration.launch_config"]

  lifecycle {
    create_before_destroy = true
  }
}

data "template_file" "cluster_asg" {
  template = "${file("${path.module}/asg.json.template")}"

  vars {
    launch_config_name  = "${aws_launch_configuration.launch_config.name}"
    vpc_zone_identifier = "${jsonencode(var.subnet_list)}"
    asg_min_size        = "${var.asg_min}"
{'fraction_non_alphanumeric': 0.1368421052631579, 'fraction_numerical': 0.0, 'mean_word_length': 4.485576923076923, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1648762', 'n_tokens_mistral': 398, 'n_tokens_neox': 386, 'n_words': 55}