Sharing EC2 Auto Scaling Groups Across Tenants for ECS
Share EC2 Auto Scaling Groups Across Tenants for ECS
DuploCloud supports sharing EC2 Auto Scaling Groups (ASGs) across Tenants for ECS services. This allows multiple Tenants to consume a common pool of ECS hosts, improving host utilization and centralizing infrastructure management. Tenant isolation is preserved, as each Tenant can only view and manage its own ECS tasks, even when those tasks are running on shared hosts.
Configuring EC2 ASG Sharing for ECS Services
Enabling Host Sharing Tenant Settings
To allow ECS tasks to run on Hosts from another Tenant, both Tenants must have the correct settings enabled:
Navigate to Administrator → Tenants.
Select the Tenant in the NAME column.
Select the Settings tab.
Click Add. The Add Tenant Feature pane displays.
In the Select Feature list box, select the appropriate setting for the Tenant:
Tenant running hosts: Allow hosts to run K8S pods/ECS Task from other tenants
Tenant(s) running tasks: Enable option to run K8S pods/ECS Task on any host


Select Enable, and click Add to save.
Creating a Shared ASG
In the Tenant that you want to run the hosts:
Select ECS in the Agent Platform field.
Wait until at least one EC2 host is running and registered with ECS before using it.
Using a Shared ASG in ECS Services
In the Tenant that you want to run ECS tasks:
Create an ECS Task Definition.
In the Launch Type field, select EC2.
Using this task definition, create an ECS Service.
Select the shared ASG from the Capacity Provider list box.
Last updated
Was this helpful?