Skip to content

fix(deploy): gate and replace deleteSellerProfile resolver migration#53

Merged
dmeiser merged 1 commit into
mainfrom
hotfix/delete-profile-resolver-migration
Jul 12, 2026
Merged

fix(deploy): gate and replace deleteSellerProfile resolver migration#53
dmeiser merged 1 commit into
mainfrom
hotfix/delete-profile-resolver-migration

Conversation

@dmeiser

@dmeiser dmeiser commented Jul 12, 2026

Copy link
Copy Markdown
Owner

The migration step in the production deploy workflow was using the wrong target address and relied on an in-place resolver update that the AWS provider does not reliably order before function deletion.

This change:

  • Adds a state-based gate so the migration only runs while old pipeline functions still exist.
  • Uses -replace with the correct module-prefixed resolver address to force recreation.
  • Makes the migration self-cleaning so it is skipped on future deploys once the old functions are gone.

The migration step was using the wrong target address and therefore did
nothing. It also relied on an in-place pipeline-resolver update, which the
AWS provider does not reliably order before function deletion.

- Add a state-based gate so the migration only runs while old pipeline
  functions still exist in the Terraform state.
- Use -replace on the module-prefixed resolver address to force
  recreation, which removes old function references before the full apply
  destroys the old functions.

This makes the migration self-cleaning and ensures it only runs once.
@dmeiser
dmeiser merged commit df0a9b9 into main Jul 12, 2026
7 checks passed
@dmeiser
dmeiser deleted the hotfix/delete-profile-resolver-migration branch July 12, 2026 11:30
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.

1 participant