awslabs / specctl

CLI to convert Kubernetes specifications to ECS Fargate and vice-versa
https://awslabs.github.io/specctl/
Apache License 2.0
233 stars 14 forks source link

AttributeError: 'NoneType' object has no attribute 'get' #13

Open nphariharan opened 2 days ago

nphariharan commented 2 days ago

Hi,

I tried this tool to migrate services from AWS ECS cluster to AWS EKS Cluster. But I am struck with the below error:

File "/specctl/.venv/lib/python3.11/site-packages/specctl/ecs2k8s/ecs_parser.py", line 92, in ingress_parser tg_name = tg_details.get("TargetGroupName") ^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'get'

Please kindly help me in resolving this error.

Thanks, Hariharan.

arvindsoni80 commented 1 day ago

Let me look into it

arvindsoni80 commented 1 day ago

Does the ECS service you are trying to convert use load balancer? And is that target group associated to some alb or not? Could you provide any other info to reproduce?