fix(terraform): handle unexpected container definition type
handle unexpected container definition type
@@ -64,6 +64,7 @@ def extract_images_from_aws_ecs_task_definition(resource: dict[str, Any]) -> lis
definitions = extract_json(resource.get("container_definitions"))
if isinstance(definitions, list):
for definition in definitions:
+ if isinstance(definition, dict):
name = definition.get("image")
if name and isinstance(name, str):
image_names.append(name)
