Skip to content

fix: remove redundant hardcoded stack names in model_deploy seed code - #421

Merged
weklund merged 2 commits into
mainfrom
fix/model-deploy-redundant-stack-names
Feb 17, 2026
Merged

fix: remove redundant hardcoded stack names in model_deploy seed code#421
weklund merged 2 commits into
mainfrom
fix/model-deploy-redundant-stack-names

Conversation

@weklund

@weklund weklund commented Feb 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Consolidates three identical DevStage/PreProdStage/ProdStage classes into a single DeployStage in the model deploy seed code
  • Adds an explicit stage_name parameter to DeployEndpointStack for SageMaker resource naming, decoupling it from the CDK construct ID
  • Fixes redundant CloudFormation stack names (e.g. dev-dev-endpointdev-{project}-endpoint) and adds project uniqueness to prevent cross-project collisions in the same account
  • Shortens SageMaker endpoint names (e.g. …-dev-endpoint-endpoint…-dev-ep)

This only affects seed code copied to CodeCommit for new SageMaker projects. Existing projects are unaffected.

Test plan

  • All existing CDK synth tests pass
  • New test verifies different stage_name values produce different SageMaker endpoint names
  • Verify CF stack names in synthesized output contain PROJECT_NAME

Consolidate DevStage, PreProdStage, ProdStage into a single DeployStage
class and add an explicit stage_name parameter to DeployEndpointStack for
SageMaker resource naming. This avoids redundant CF stack names like
"dev-dev-endpoint", adds project uniqueness to prevent cross-project
collisions, and shortens SageMaker resource names.
@weklund
weklund merged commit cc14571 into main Feb 17, 2026
6 checks passed
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.

2 participants