copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

feat(svc deploy): warn about missing secrets

Open KirtiRamchandani opened this issue 6 months ago • 1 comments

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

KirtiRamchandani avatar Jun 01 '26 05:06 KirtiRamchandani

The failing Summary / Mergify Merge Queue checks here are from the repository-wide Mergify config, not this PR's code. The check-run output reports actions.queue.method and actions.queue.commit_message_template as invalid extra inputs.

Opened #7398 to move the squash merge strategy and commit-message settings onto queue_rules, which should address the shared Mergify validation failure.

KirtiRamchandani avatar Jun 05 '26 06:06 KirtiRamchandani