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.
- package/bin/cli.js +1 -1
- package/package.json +1 -1
- package/src/commands/add.js +93 -11
- package/src/commands/alerts.js +66 -30
- package/src/commands/apply.js +65 -10
- package/src/commands/db/backup.js +1 -2
- package/src/commands/db/connect.js +10 -4
- package/src/commands/db/enable-vector.js +19 -6
- package/src/commands/db/import.js +114 -22
- package/src/commands/db/migrate.js +82 -74
- package/src/commands/db/restore.js +38 -6
- package/src/commands/destroy.js +20 -3
- package/src/commands/diagnose.js +40 -21
- package/src/commands/doctor.js +27 -2
- package/src/commands/domain.js +20 -2
- package/src/commands/drift.js +2 -1
- package/src/commands/eject.js +13 -2
- package/src/commands/gc.js +100 -3
- package/src/commands/init.js +75 -9
- package/src/commands/logs.js +3 -1
- package/src/commands/mcp.js +2 -1
- package/src/commands/rollback.js +54 -5
- package/src/commands/secrets.js +260 -64
- package/src/commands/status.js +4 -1
- package/src/commands/sync-ai.js +4 -3
- package/src/commands/wake.js +45 -1
- package/src/data/action-pins.js +26 -0
- package/src/utils/addons.js +9 -6
- package/src/utils/ai-rules.js +3 -2
- package/src/utils/backup.js +16 -2
- package/src/utils/command.js +20 -0
- package/src/utils/db-tunnel.js +15 -5
- package/src/utils/detector.js +8 -0
- package/src/utils/ecs-runner.js +16 -3
- package/src/utils/frameworks.js +14 -2
- package/src/utils/generator.js +21 -13
- package/src/utils/prompts.js +20 -4
- package/src/utils/resolvers.js +9 -7
- package/src/utils/revision-discovery.js +19 -7
- package/templates/docker/django.Dockerfile +2 -2
- package/templates/docker/go.Dockerfile +2 -2
- package/templates/docker/nestjs.Dockerfile +2 -2
- package/templates/docker/nextjs.Dockerfile +3 -3
- package/templates/docker/node.Dockerfile +2 -2
- package/templates/docker/nuxt.Dockerfile +2 -2
- package/templates/docker/python.Dockerfile +2 -2
- package/templates/docker/rails.Dockerfile +2 -2
- package/templates/docker/static.Dockerfile +2 -2
- package/templates/docker/svelte.Dockerfile +2 -2
- package/templates/github/deploy-lambda.yml +55 -12
- package/templates/github/deploy-static.yml +24 -6
- package/templates/github/deploy.yml +96 -13
- package/templates/github/drift.yml +68 -5
- package/templates/github/preview-lambda.yml +137 -13
- package/templates/github/preview.yml +135 -13
- package/templates/github/teardown.yml +71 -12
- package/templates/terraform/addons/s3.tf +35 -0
- package/templates/terraform/backend.tf +7 -0
- package/templates/terraform/database-mysql.tf +9 -1
- package/templates/terraform/database.tf +9 -1
- package/templates/terraform/oidc.tf +3 -2
- package/templates/terraform/secrets.tf +6 -4
- 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
|
|
6
|
-
name
|
|
7
|
-
description
|
|
8
|
-
|
|
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]
|