Unmanaged compute environments
In an unmanaged compute environment, you manage your own compute resources. You must verify that the AMI you use for your compute resources meets the Amazon ECS container instance AMI specification. For more information, see Compute resource AMI specification and Tutorial: Create a compute resource AMI.
Note
Amazon Fargate resources aren't supported in unmanaged compute environments.
After you created your unmanaged compute environment, use the DescribeComputeEnvironments API operation to view the compute environment details. Find the Amazon ECS cluster that's associated with the environment and then manually launch your container instances into that Amazon ECS cluster.
The following Amazon CLI command also provides the Amazon ECS cluster ARN.
$
aws batch describe-compute-environments \ --compute-environments
unmanagedCE
\ --query "computeEnvironments[].ecsClusterArn"
For more information, see Launching an Amazon ECS
container instance in the Amazon Elastic Container Service Developer Guide. When you launch your compute resources,
specify the Amazon ECS cluster ARN that the resources register with the following Amazon EC2 user data. Replace
ecsClusterArn
with the cluster ARN that you obtained with the previous command.
#!/bin/bash echo "ECS_CLUSTER=
ecsClusterArn
" >> /etc/ecs/ecs.config