Skip to content

feat(svc deploy): warn about missing secrets#7397

Open
KirtiRamchandani wants to merge 1 commit into
aws:mainlinefrom
KirtiRamchandani:fix/svc-deploy-secret-check
Open

feat(svc deploy): warn about missing secrets#7397
KirtiRamchandani wants to merge 1 commit into
aws:mainlinefrom
KirtiRamchandani:fix/svc-deploy-secret-check

Conversation

@KirtiRamchandani
Copy link
Copy Markdown

Problem

copilot svc deploy can continue until ECS task stabilization before surfacing that a manifest secret does not exist.

Root cause

Service deploy did not validate manifest secret references after environment overrides were applied.

Solution

Check applied service manifest secrets against SSM Parameter Store and Secrets Manager before deployment, warn for confirmed missing secrets, and keep deployment non-blocking for other validation errors.

Tests

  • go test ./internal/pkg/aws/ssm
  • go test ./internal/pkg/cli -run TestDeploySvcOpts_MissingSecrets
  • go test ./internal/pkg/cli -run "TestDeploySvcOpts_(Execute|MissingSecrets)"
  • git diff --check

Closes #5662

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show warning message before deployment when a secret does not exist

1 participant