Skip to content

feat: [DEV-536] publish version and update alias after function deploy#202

Merged
ArielSantos01 merged 2 commits into
mainfrom
chore/update-alias-deploy-func
May 18, 2026
Merged

feat: [DEV-536] publish version and update alias after function deploy#202
ArielSantos01 merged 2 commits into
mainfrom
chore/update-alias-deploy-func

Conversation

@ArielSantos01

Copy link
Copy Markdown
Contributor

Description

After deploying a Lambda function's code, the deploy:func commands now wait for the update to settle, publish an immutable version, and update the function's alias to point to it.

Task Context

What is the current behavior?

deploy:func:dev/prod/feature uploads the zip via update-function-code and stops there. The alias (if any) keeps pointing to the previous version.

What is the new behavior?

After uploading the zip, the command:

  1. Waits for the update to complete (aws lambda wait function-updated)
  2. Publishes a new immutable version (aws lambda publish-version)
  3. Fetches the function's aliases (list-aliases) — skips silently if none, errors if more than one is found
  4. Updates the alias to point to the newly published version (update-alias)

Additional Context

After uploading the zip, wait for the update to settle, publish an
immutable version, and point the function's single alias to it.
Errors if more than one alias is found.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ArielSantos01 ArielSantos01 changed the title feat(deploy): publish version and update alias after function deploy feat: [DEV-536] publish version and update alias after function deploy May 14, 2026
…loys to prod

Full service deploy via deploy:prod remains available.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ArielSantos01 ArielSantos01 merged commit 3592d1a into main May 18, 2026
2 checks passed
@ArielSantos01 ArielSantos01 deleted the chore/update-alias-deploy-func branch May 18, 2026 15:54
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