Create a compute environment
Before you can run jobs in AWS Batch, you need to create a compute environment. You can create a managed compute environment where AWS Batch manages the Amazon EC2 instances or AWS Fargate resources within the environment based on your specifications. Or, alternatively, you can create an unmanaged compute environment where you handle the Amazon EC2 instance configuration within the environment.
Fargate Spot instances are not supported in the following scenarios:
-
Windows containers on AWS Fargate
A job queue will be blocked in these scenarios if a job is submitted to a job queue that only uses Fargate Spot compute environments.
AWS Batch doesn't support Windows AMIs for Amazon EC2 compute resources in compute environments that use Amazon ECS
orchestration. These compute resources must use a Linux-based AMI. The AMI must meet the requirements in Compute resource AMI specification. To run Windows containers, use AWS Fargate compute
resources and set the operating system family in the job definition's runtimePlatform parameter.
For more information, see runtimePlatform in the AWS Batch API Reference.
Topics
Tutorial: Create a managed compute environment using Fargate resources
Tutorial: Create a managed compute environment using Amazon ECS Managed Instances
Tutorial: Create a managed compute environment using Amazon EC2 resources
Tutorial: Create an unmanaged compute environment using Amazon EC2 resources
Tutorial: Create a managed compute environment using Amazon EKS resources
Tutorial: Create an unmanaged compute environment using Amazon EKS resources