AWS Batch
Overview
Real-life Use Cases
Terraform Example
resource "aws_batch_compute_environment" "example" {
compute_environment_name = "example"
compute_resources {
instance_role = aws_iam_instance_profile.ecs_instance.arn
instance_type = ["m4.large"]
max_vcpus = 16
min_vcpus = 0
type = "EC2"
subnets = [aws_subnet.example.id]
security_group_ids = [aws_security_group.example.id]
}
service_role = aws_iam_role.aws_batch_service.arn
type = "MANAGED"
}AWS CLI Example
Best Practices
Common Pitfalls
Last updated