AWS Batch now exposes array size as a container environment variable of an array child job. With this feature, customers can use array size in the logic of their applications (e.g. to divide data between jobs for parallel processing).
Source:: Amazon AWS