# __generated__ by Terraform
# Please review these resources and move them into your main configuration files.

# __generated__ by Terraform from "media-conversion-batch-c5-on-demand-prod-03"
resource "aws_batch_compute_environment" "media-conversion-batch-c5-on-demand-prod-03" {
  compute_environment_name        = "media-conversion-batch-c5-on-demand-prod-03"
  compute_environment_name_prefix = null
  service_role                    = "arn:aws:iam::638682502729:role/aws-service-role/batch.amazonaws.com/AWSServiceRoleForBatch"
  state                           = "ENABLED"
  tags = {
    map-migrated = "migKNBMDMW06I"
  }
  tags_all = {
    map-migrated = "migKNBMDMW06I"
  }
  type = "MANAGED"
  compute_resources {
    allocation_strategy = "BEST_FIT_PROGRESSIVE"
    bid_percentage      = 0
    desired_vcpus       = 512
    ec2_key_pair        = null
    image_id            = null
    instance_role       = "arn:aws:iam::638682502729:instance-profile/ecsInstanceRole"
    instance_type       = ["c6i.4xlarge", "c6i.8xlarge"]
    max_vcpus           = 4096
    min_vcpus           = 0
    placement_group     = null
    security_group_ids  = ["sg-0f03bc66c1e9c7975"]
    spot_iam_fleet_role = null
    subnets             = ["subnet-014ab173dc8da32a7", "subnet-0c46bcf15c20e56d8"]
    tags = {
      Name         = "aws-batch-instance-on-demand-prod"
      map-migrated = "migKNBMDMW06I"
    }
    type = "EC2"
    ec2_configuration {
      image_id_override = null
      image_type        = "ECS_AL2"
    }
    launch_template {
      launch_template_id   = null
      launch_template_name = "media-conversion-batch-c5-template"
      version              = "$Latest"
    }
  }
  update_policy {
    job_execution_timeout_minutes = 30
    terminate_jobs_on_update      = false
  }
  lifecycle {
    ignore_changes = [
      compute_resources[0].desired_vcpus,
    ]
  }
}

# __generated__ by Terraform from "media-conversion-batch-c5-on-demand-lp-prod-03"
resource "aws_batch_compute_environment" "media-conversion-batch-c5-on-demand-lp-prod-03" {
  compute_environment_name        = "media-conversion-batch-c5-on-demand-lp-prod-03"
  compute_environment_name_prefix = null
  service_role                    = "arn:aws:iam::638682502729:role/aws-service-role/batch.amazonaws.com/AWSServiceRoleForBatch"
  state                           = "DISABLED"
  tags = {
    map-migrated = "migKNBMDMW06I"
  }
  tags_all = {
    map-migrated = "migKNBMDMW06I"
  }
  type = "MANAGED"
  compute_resources {
    allocation_strategy = "BEST_FIT_PROGRESSIVE"
    bid_percentage      = 0
    desired_vcpus       = 0
    ec2_key_pair        = null
    image_id            = null
    instance_role       = "arn:aws:iam::638682502729:instance-profile/ecsInstanceRole"
    instance_type       = ["c6i.4xlarge", "c6i.8xlarge"]
    max_vcpus           = 2048
    min_vcpus           = 0
    placement_group     = null
    security_group_ids  = ["sg-0f03bc66c1e9c7975"]
    spot_iam_fleet_role = null
    subnets             = ["subnet-011267639fccf7cae", "subnet-0567462d2ecbf60d8"]
    tags = {
      Name         = "aws-batch-instance-on-demand-lp-prod"
      map-migrated = "migKNBMDMW06I"
    }
    type = "EC2"
    ec2_configuration {
      image_id_override = null
      image_type        = "ECS_AL2"
    }
    launch_template {
      launch_template_id   = null
      launch_template_name = "media-conversion-batch-c5-template"
      version              = "$Latest"
    }
  }
  update_policy {
    job_execution_timeout_minutes = 30
    terminate_jobs_on_update      = false
  }
  lifecycle {
    ignore_changes = [
      compute_resources[0].desired_vcpus,
    ]
  }
}
/*
# __generated__ by Terraform from "media-conversion-batch-lp-c5-on-demand-prod-back-fill-03"
resource "aws_batch_compute_environment" "media-conversion-batch-lp-c5-on-demand-prod-back-fill-03" {
  compute_environment_name        = "media-conversion-batch-lp-c5-on-demand-prod-back-fill-03"
  compute_environment_name_prefix = null
  service_role                    = "arn:aws:iam::638682502729:role/aws-service-role/batch.amazonaws.com/AWSServiceRoleForBatch"
  state                           = "ENABLED"
  tags = {
    map-migrated = "migKNBMDMW06I"
  }
  tags_all = {
    map-migrated = "migKNBMDMW06I"
  }
  type = "MANAGED"
  compute_resources {
    allocation_strategy = "BEST_FIT_PROGRESSIVE"
    bid_percentage      = 0
    desired_vcpus       = 0
    ec2_key_pair        = null
    image_id            = null
    instance_role       = "arn:aws:iam::638682502729:instance-profile/ecsInstanceRole"
    instance_type       = ["c6i.4xlarge", "c6i.8xlarge"]
    max_vcpus           = 2048
    min_vcpus           = 0
    placement_group     = null
    security_group_ids  = ["sg-0f03bc66c1e9c7975"]
    spot_iam_fleet_role = null
    subnets             = ["subnet-011267639fccf7cae", "subnet-0567462d2ecbf60d8"]
    tags = {
      Name         = "aws-batch-instance-on-demand-lp-prod-back-fill-03"
      map-migrated = "migKNBMDMW06I"
    }
    type = "EC2"
    ec2_configuration {
      image_id_override = null
      image_type        = "ECS_AL2"
    }
    launch_template {
      launch_template_id   = null
      launch_template_name = "media-conversion-batch-c5-template"
      version              = "$Latest"
    }
  }
  update_policy {
    job_execution_timeout_minutes = 30
    terminate_jobs_on_update      = false
  }
  lifecycle {
    ignore_changes = [
      compute_resources[0].desired_vcpus,
    ]
  }
}
*/
# __generated__ by Terraform from "media-conversion-batch-c5-spot-lp-prod-03"
resource "aws_batch_compute_environment" "media-conversion-batch-c5-spot-lp-prod-03" {
  compute_environment_name        = "media-conversion-batch-c5-spot-lp-prod-03"
  compute_environment_name_prefix = null
  service_role                    = "arn:aws:iam::638682502729:role/aws-service-role/batch.amazonaws.com/AWSServiceRoleForBatch"
  state                           = "DISABLED"
  tags = {
    map-migrated = "migKNBMDMW06I"
  }
  tags_all = {
    map-migrated = "migKNBMDMW06I"
  }
  type = "MANAGED"
  compute_resources {
    allocation_strategy = "SPOT_PRICE_CAPACITY_OPTIMIZED"
    bid_percentage      = 50
    desired_vcpus       = 0
    ec2_key_pair        = null
    image_id            = null
    instance_role       = "arn:aws:iam::638682502729:instance-profile/ecsInstanceRole"
    instance_type       = ["c5.4xlarge", "c5.9xlarge", "c6i.4xlarge", "c6i.8xlarge", "c7i-flex.4xlarge", "c7i-flex.8xlarge", "c7i.4xlarge", "c7i.8xlarge", "m5.4xlarge", "m5.8xlarge", "m6i.4xlarge", "m6i.8xlarge", "m7i-flex.4xlarge", "m7i-flex.8xlarge", "m7i.4xlarge", "m7i.8xlarge"]
    max_vcpus           = 2048
    min_vcpus           = 0
    placement_group     = null
    security_group_ids  = ["sg-0f03bc66c1e9c7975"]
    spot_iam_fleet_role = null
    subnets             = ["subnet-011267639fccf7cae", "subnet-0567462d2ecbf60d8"]
    tags = {
      Name         = "aws-batch-instance-spot-lp-prod"
      map-migrated = "migKNBMDMW06I"
    }
    type = "SPOT"
    ec2_configuration {
      image_id_override = null
      image_type        = "ECS_AL2"
    }
    launch_template {
      launch_template_id   = null
      launch_template_name = "media-conversion-batch-c5-template"
      version              = "$Latest"
    }
  }
  update_policy {
    job_execution_timeout_minutes = 30
    terminate_jobs_on_update      = false
  }
  lifecycle {
    ignore_changes = [
      compute_resources[0].desired_vcpus,
    ]
  }
}


# __generated__ by Terraform from "media-conversion-batch-c5-emergency-lp-prod-03"
resource "aws_batch_compute_environment" "media-conversion-batch-c5-emergency-lp-prod-03" {
  compute_environment_name        = "media-conversion-batch-c5-emergency-lp-prod-03"
  compute_environment_name_prefix = null
  service_role                    = "arn:aws:iam::638682502729:role/aws-service-role/batch.amazonaws.com/AWSServiceRoleForBatch"
  state                           = "DISABLED"
  tags = {
    map-migrated = "migKNBMDMW06I"
  }
  tags_all = {
    map-migrated = "migKNBMDMW06I"
  }
  type = "MANAGED"
  compute_resources {
    allocation_strategy = "BEST_FIT_PROGRESSIVE"
    bid_percentage      = 0
    desired_vcpus       = 0
    ec2_key_pair        = null
    image_id            = null
    instance_role       = "arn:aws:iam::638682502729:instance-profile/ecsInstanceRole"
    instance_type       = ["c6i.4xlarge", "c6i.8xlarge"]
    max_vcpus           = 2048
    min_vcpus           = 0
    placement_group     = null
    security_group_ids  = ["sg-0f03bc66c1e9c7975"]
    spot_iam_fleet_role = null
    subnets             = ["subnet-011267639fccf7cae", "subnet-0567462d2ecbf60d8"]
    tags = {
      Name         = "aws-batch-instance-emergeny-lp-prod"
      map-migrated = "migKNBMDMW06I"
    }
    type = "EC2"
    ec2_configuration {
      image_id_override = null
      image_type        = "ECS_AL2"
    }
    launch_template {
      launch_template_id   = null
      launch_template_name = "media-conversion-batch-c5-template"
      version              = "$Latest"
    }
  }
  update_policy {
    job_execution_timeout_minutes = 30
    terminate_jobs_on_update      = false
  }
  lifecycle {
    ignore_changes = [
      compute_resources[0].desired_vcpus,
    ]
  }
}


# __generated__ by Terraform from "media-conversion-batch-c5-emergency-prod-03"
resource "aws_batch_compute_environment" "media-conversion-batch-c5-emergency-prod-03" {
  compute_environment_name        = "media-conversion-batch-c5-emergency-prod-03"
  compute_environment_name_prefix = null
  service_role                    = "arn:aws:iam::638682502729:role/aws-service-role/batch.amazonaws.com/AWSServiceRoleForBatch"
  state                           = "ENABLED"
  tags = {
    map-migrated = "migKNBMDMW06I"
  }
  tags_all = {
    map-migrated = "migKNBMDMW06I"
  }
  type = "MANAGED"
  compute_resources {
    allocation_strategy = "BEST_FIT_PROGRESSIVE"
    bid_percentage      = 0
    desired_vcpus       = 0
    ec2_key_pair        = null
    image_id            = null
    instance_role       = "arn:aws:iam::638682502729:instance-profile/ecsInstanceRole"
    instance_type       = ["c6i.4xlarge", "c6i.8xlarge"]
    max_vcpus           = 4096
    min_vcpus           = 0
    placement_group     = null
    security_group_ids  = ["sg-0f03bc66c1e9c7975"]
    spot_iam_fleet_role = null
    subnets             = ["subnet-014ab173dc8da32a7", "subnet-0c46bcf15c20e56d8"]
    tags = {
      Name         = "aws-batch-instance-emergeny-prod"
      map-migrated = "migKNBMDMW06I"
    }
    type = "EC2"
    ec2_configuration {
      image_id_override = null
      image_type        = "ECS_AL2"
    }
    launch_template {
      launch_template_id   = null
      launch_template_name = "media-conversion-batch-c5-template"
      version              = "$Latest"
    }
  }
  update_policy {
    job_execution_timeout_minutes = 30
    terminate_jobs_on_update      = false
  }
  lifecycle {
    ignore_changes = [
      compute_resources[0].desired_vcpus,
    ]
  }
}

# __generated__ by Terraform from "media-conversion-batch-c5-spot-prod-03"
resource "aws_batch_compute_environment" "media-conversion-batch-c5-spot-prod-03" {
  compute_environment_name        = "media-conversion-batch-c5-spot-prod-03"
  compute_environment_name_prefix = null
  service_role                    = "arn:aws:iam::638682502729:role/aws-service-role/batch.amazonaws.com/AWSServiceRoleForBatch"
  state                           = "ENABLED"
  tags = {
    map-migrated = "migKNBMDMW06I"
  }
  tags_all = {
    map-migrated = "migKNBMDMW06I"
  }
  type = "MANAGED"
  compute_resources {
    allocation_strategy = "SPOT_CAPACITY_OPTIMIZED"
    bid_percentage      = 50
    desired_vcpus       = 0
    ec2_key_pair        = null
    image_id            = null
    instance_role       = "arn:aws:iam::638682502729:instance-profile/ecsInstanceRole"
    instance_type       = ["c5.4xlarge", "c5.9xlarge", "c6i.4xlarge", "c6i.8xlarge", "c7i-flex.4xlarge", "c7i-flex.8xlarge", "c7i.4xlarge", "c7i.8xlarge", "m5.4xlarge", "m5.8xlarge", "m6i.4xlarge", "m6i.8xlarge", "m7i-flex.4xlarge", "m7i-flex.8xlarge", "m7i.4xlarge", "m7i.8xlarge"]
    max_vcpus           = 4096
    min_vcpus           = 0
    placement_group     = null
    security_group_ids  = ["sg-0f03bc66c1e9c7975"]
    spot_iam_fleet_role = null
    subnets             = ["subnet-014ab173dc8da32a7", "subnet-0c46bcf15c20e56d8"]
    tags = {
      Name         = "aws-batch-instance-spot-prod"
      map-migrated = "migKNBMDMW06I"
    }
    type = "SPOT"
    ec2_configuration {
      image_id_override = null
      image_type        = "ECS_AL2"
    }
    launch_template {
      launch_template_id   = null
      launch_template_name = "media-conversion-batch-c5-template"
      version              = "$Latest"
    }
  }
  update_policy {
    job_execution_timeout_minutes = 30
    terminate_jobs_on_update      = false
  }
  lifecycle {
    ignore_changes = [
      compute_resources[0].desired_vcpus,
    ]
  }
}
