# Deployment Issue

**URL:** <https://community.crewai.com/t/deployment-issue/2944>\
**Category:** General\
**Created:** [January 17, 2025, 5:54pm UTC](https://community.crewai.com/t/deployment-issue/2944 "2025-01-17T17:54:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ross\_Dickinson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/ross_dickinson/32/2103_2.png) [@Ross\_Dickinson](https://community.crewai.com/u/Ross_Dickinson)\
**Post date:** [January 17, 2025, 5:54pm UTC](https://community.crewai.com/t/deployment-issue/2944/1 "2025-01-17T17:54:01Z")

</div>

I am running into this error when deploying to Enterprise Platform.

Note: `crewai flow kickoff` works locally.

`Ansible playbook failed: PLAY [Deploy ECS Cluster and Service] **TASK [Debug variables]** ok: [localhost] => { "msg": ["vpc_id: vpc-0a9bef58bf9de5cf3"] } TASK [Ensure VPC Exists] **skipping: [localhost] TASK [Get available subnets]** ok: [localhost] TASK [Select a subnet if available] **ok: [localhost] TASK [Get VPC CIDR]** skipping: [localhost] TASK [Calculate new subnet CIDR] **skipping: [localhost] TASK [Create new subnet]** skipping: [localhost] TASK [Set selected subnet to new subnet] **skipping: [localhost] TASK [Ensure Security Group Exists for ALB]** ok: [localhost] TASK [Update ECS Security Group for ALB] **ok: [localhost] TASK [Create ECS Cluster]** changed: [localhost] TASK [Create CloudWatch Log Group] **changed: [localhost] TASK [Try to get ALB info]** ok: [localhost] TASK [Ensure ALB info is defined] **ok: [localhost] TASK [Get existing target group info]** ok: [localhost] TASK [Create Target Group] ** An exception occurred during task execution. To see the full traceback, use -vvv. The error was: botocore.errorfactory.TooManyTargetGroupsException: An error occurred (TooManyTargetGroups) when calling the CreateTargetGroup operation: The maximum number of target groups has been reached fatal: [localhost]: FAILED! => {"boto3_version": "1.35.90", "botocore_version": "1.35.90", "changed": false, "error": {"code": "TooManyTargetGroups", "message": "The maximum number of target groups has been reached", "type": "Sender"}, "msg": "Couldn't create target group: An error occurred (TooManyTargetGroups) when calling the CreateTargetGroup operation: The maximum number of target groups has been reached", "response_metadata": {"http_headers": {"connection": "close", "content-length": "319", "content-type": "text/xml", "date": "Fri, 17 Jan 2025 17:29:38 GMT", "x-amzn-requestid": "8f90909f-2417-48c1-82cc-989c34461012"}, "http_status_code": 400, "request_id": "8f90909f-2417-48c1-82cc-989c34461012", "retry_attempts": 0}} PLAY RECAP * localhost : ok=10 changed=2 unreachable=0 failed=1 skipped=5 rescued=0 ignored=0 [WARNING]: Unable to parse /app/localhost as an inventory source [WARNING]: No inventory was parsed, only implicit localhost is available [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' (Exit code: 2)`

Thank you in advance 🙂
