grada-run 0.42.0 → 0.43.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/bin/cli.js +1 -1
  2. package/package.json +1 -1
  3. package/src/commands/add.js +93 -11
  4. package/src/commands/alerts.js +66 -30
  5. package/src/commands/apply.js +65 -10
  6. package/src/commands/db/backup.js +1 -2
  7. package/src/commands/db/connect.js +10 -4
  8. package/src/commands/db/enable-vector.js +19 -6
  9. package/src/commands/db/import.js +114 -22
  10. package/src/commands/db/migrate.js +82 -74
  11. package/src/commands/db/restore.js +38 -6
  12. package/src/commands/destroy.js +20 -3
  13. package/src/commands/diagnose.js +40 -21
  14. package/src/commands/doctor.js +27 -2
  15. package/src/commands/domain.js +20 -2
  16. package/src/commands/drift.js +2 -1
  17. package/src/commands/eject.js +13 -2
  18. package/src/commands/gc.js +100 -3
  19. package/src/commands/init.js +75 -9
  20. package/src/commands/logs.js +3 -1
  21. package/src/commands/mcp.js +2 -1
  22. package/src/commands/rollback.js +54 -5
  23. package/src/commands/secrets.js +260 -64
  24. package/src/commands/status.js +4 -1
  25. package/src/commands/sync-ai.js +4 -3
  26. package/src/commands/wake.js +45 -1
  27. package/src/data/action-pins.js +26 -0
  28. package/src/utils/addons.js +9 -6
  29. package/src/utils/ai-rules.js +3 -2
  30. package/src/utils/backup.js +16 -2
  31. package/src/utils/command.js +20 -0
  32. package/src/utils/db-tunnel.js +15 -5
  33. package/src/utils/detector.js +8 -0
  34. package/src/utils/ecs-runner.js +16 -3
  35. package/src/utils/frameworks.js +14 -2
  36. package/src/utils/generator.js +21 -13
  37. package/src/utils/prompts.js +20 -4
  38. package/src/utils/resolvers.js +9 -7
  39. package/src/utils/revision-discovery.js +19 -7
  40. package/templates/docker/django.Dockerfile +2 -2
  41. package/templates/docker/go.Dockerfile +2 -2
  42. package/templates/docker/nestjs.Dockerfile +2 -2
  43. package/templates/docker/nextjs.Dockerfile +3 -3
  44. package/templates/docker/node.Dockerfile +2 -2
  45. package/templates/docker/nuxt.Dockerfile +2 -2
  46. package/templates/docker/python.Dockerfile +2 -2
  47. package/templates/docker/rails.Dockerfile +2 -2
  48. package/templates/docker/static.Dockerfile +2 -2
  49. package/templates/docker/svelte.Dockerfile +2 -2
  50. package/templates/github/deploy-lambda.yml +55 -12
  51. package/templates/github/deploy-static.yml +24 -6
  52. package/templates/github/deploy.yml +96 -13
  53. package/templates/github/drift.yml +68 -5
  54. package/templates/github/preview-lambda.yml +137 -13
  55. package/templates/github/preview.yml +135 -13
  56. package/templates/github/teardown.yml +71 -12
  57. package/templates/terraform/addons/s3.tf +35 -0
  58. package/templates/terraform/backend.tf +7 -0
  59. package/templates/terraform/database-mysql.tf +9 -1
  60. package/templates/terraform/database.tf +9 -1
  61. package/templates/terraform/oidc.tf +3 -2
  62. package/templates/terraform/secrets.tf +6 -4
  63. package/templates/terraform/worker.tf +7 -0
@@ -2,10 +2,12 @@
2
2
 
3
3
  # 1. Only create the Secret Vault in the default (production) workspace
4
4
  resource "aws_secretsmanager_secret" "app_secrets" {
5
- count = terraform.workspace == "default" ? 1 : 0
6
- name = "{{PROJECT_NAME}}{{RESOURCE_SUFFIX}}-secrets"
7
- description = "Environment variables for {{PROJECT_NAME}}"
8
- recovery_window_in_days = 0 # Allows instant deletion for dev/POC environments
5
+ count = terraform.workspace == "default" ? 1 : 0
6
+ name = "{{PROJECT_NAME}}{{RESOURCE_SUFFIX}}-secrets"
7
+ description = "Environment variables for {{PROJECT_NAME}}"
8
+ # 30-day recovery (BUG-163): an instant-delete vault turns any destroy
9
+ # bug into unrecoverable secret loss. Lower per-tree if you must.
10
+ recovery_window_in_days = 30
9
11
  }
10
12
 
11
13
  # 2. Fetch the existing Secret Vault when running in a PR workspace
@@ -55,6 +55,13 @@ resource "aws_ecs_service" "worker" {
55
55
  desired_count = 1
56
56
  enable_execute_command = true
57
57
 
58
+ # Same safety net as the app service: a bad worker revision rolls
59
+ # back automatically instead of flapping forever.
60
+ deployment_circuit_breaker {
61
+ enable = true
62
+ rollback = true
63
+ }
64
+
58
65
  network_configuration {
59
66
  subnets = aws_subnet.public[*].id
60
67
  security_groups = [aws_security_group.ecs_tasks.id]