theinnercircle/Deploy ECS Service
Flexible ECS deployment supporting single container, multi-container, and migration patterns
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| environment | Target environment (e.g., test1, test6, acceptance1) | yes | — |
| service | Service name (e.g., backend, admin, sockets, imgresize) | yes | — |
| cluster_name | ECS cluster name (defaults to theic-{environment}) | no | "" |
| service_name | ECS service name (defaults to theic-{environment}-{service}) | no | "" |
| aws_region | AWS region | yes | — |
| aws_account_id | AWS account ID | yes | — |
| containers | JSON array of containers to deploy. Each container should have: - name: Container name in task definition - image: Image name (without tag/SHA) - image_tag: Docker image tag/SHA Example single container: '[{"name": "ic-sockets", "image": "ic-sockets", "image_tag": "sha-abc123"}]' Example multi-container (webserver + app): '[ {"name": "ic-backend-webserver", "image": "ic-app-webserver", "image_tag": "sha-abc123"}, {"name": "ic-backend", "image": "ic-app", "image_tag": "sha-abc123"} ]' | yes | — |
| run_migrations | Whether to run migrations before deployment | no | false |
| migration_task_definition | Task definition name for migrations (e.g., theic-test1-adminpanel-task) | no | "" |
| migration_container_name | Container name in migration task definition | no | ic-task |
| migration_command | Command to run for migrations (e.g., "php artisan migrate --force") | no | php artisan migrate --force |
| migration_image | Image to use for migrations (without tag) | no | "" |
| migration_image_tag | Image tag for migrations | no | "" |
| manage_desired_count | Whether to manage desired count (scale up if 0) | no | false |
| wait_for_stability | Wait for service stability after deployment | no | true |
| propagate_tags | Propagate tags (TASK_DEFINITION, SERVICE, or NONE) | no | SERVICE |
Outputs
| name | description |
|---|---|
| task-definition-arn | ARN of the deployed task definition |
| desired-count | Desired count used for deployment (if managed) |