Conversation
|
Task linked: DUPLO-30502 Run ECS Tasks |
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
new run task method update image will update task defs and services if they are attached
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
There was a problem hiding this comment.
Pull Request Overview
This PR introduces new CLI commands to manage ECS services and task definitions, along with corresponding test data definitions.
- Adds new commands: list_services, find_service_family, delete_service, update_service, run_task, and wait_on_task.
- Updates existing service and task definition lookup flows to use a prefixed naming scheme and improved endpoint handling.
- Adds YAML test definitions for ECS task definitions and ECS services.
Reviewed Changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/tests/data/ecs_td.yaml | Provides test data for ECS task definitions. |
| src/tests/data/ecs_service.yaml | Provides test data for ECS services. |
| src/duplo_resource/ecs_service.py | Updates and adds new CLI commands for handling ECS resources. |
| src/duplocloud/resource.py | Adds the helper method prefixed_name for resource name prepending. |
| src/duplocloud/args.py | Minor formatting changes in argument definitions. |
Files not reviewed (1)
- wiki: Language not supported
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||
probably doesn't work but it doesn't fail so . . .
User description
Describe Changes
Run ecs tasks from the cli.
Link to Issues
https://app.clickup.com/t/8655600/DUPLO-30502
PR Review Checklist
PR Type
Enhancement, Tests
Description
Added new ECS service management commands, including
run_task,delete_service, andlist_tasks.Enhanced task definition handling with
prefixed_nameutility and updated endpoint paths.Introduced test data files for ECS services and task definitions.
Updated submodule reference in the
wikifile.Changes walkthrough 📝
ecs_service.py
Added ECS service and task management commandssrc/duplo_resource/ecs_service.py
run_task,delete_service,list_tasks, etc.).prefixed_nameand updatedendpoint paths.
args.py
Added new argument definitions for ECS commandssrc/duplocloud/args.py
resource.py
Added utility for ECS naming and endpoint updatessrc/duplocloud/resource.py
prefixed_nameutility for consistent ECS naming conventions.endpointmethod for improved path handling.ecs_service.yaml
Added test data for ECS service configurationssrc/tests/data/ecs_service.yaml
ecs_td.yaml
Added test data for ECS task definitionssrc/tests/data/ecs_td.yaml
wiki
Updated submodule reference in `wiki`wiki
wikifile.