Usage
Deployed Resources
Once deployed, you should see the following in your AWS account:
Naming convention: <org>-<env>-<domain>-<module>-<resource>
SSM parameters: /<org>/<domain>/<module>/<resource-type>/<resource-name>/<attribute>
| Resource | Deployed Name / SSM Path | Config Reference |
|---|---|---|
| CodePipeline Pipeline (Training) | <org>-dev-mlops-core-<project>-build/<org>/mlops/core/pipeline/training/name |
training in mlops/mlops.yaml |
| CodePipeline Pipeline (Deploy) | <org>-dev-mlops-core-<project>-deploy/<org>/mlops/core/pipeline/deploy/name |
deploy in mlops/mlops.yaml |
| SageMaker Model Package Group | <org>-dev-mlops-core-<project>-mpg/<org>/mlops/core/model-package-group/name |
deployed by mlops/mlops.yaml(not configurable) |
| S3 Bucket (Artifacts) | <org>-dev-mlops-core-model-<project>/<org>/mlops/core/bucket/name |
deployed by mlops/mlops.yaml(not configurable) |
| CodeCommit Repository (Training) | <org>-dev-mlops-core-<project>-build/<org>/mlops/core/repository/training/name |
training.seedCodePath in mlops/mlops.yaml |
| CodeCommit Repository (Deploy) | <org>-dev-mlops-core-<project>-deploy/<org>/mlops/core/repository/deploy/name |
deploy.seedCodePath in mlops/mlops.yaml |
Post-Deployment Steps
1. Verify Pipeline Execution
The training pipeline starts automatically after deployment:
- Navigate to AWS CodePipeline Console > select
<org>-dev-mlops-core-<project>-build. - Confirm the pipeline execution is in progress or has completed successfully.
- If the Source stage fails, verify the CodeCommit repository contains the seed code.
2. Approve the Trained Model
Once training completes, the model is registered in SageMaker Model Registry in "PendingManualApproval" status:
- Navigate to SageMaker Console > Model Registry > select
<org>-dev-mlops-core-<project>-mpg. - Select the latest model version.
- Change the status to Approved to trigger the deploy pipeline.
3. Verify Endpoint Deployment
After approval, EventBridge triggers the deploy pipeline automatically:
- Navigate to CodePipeline Console > select
<org>-dev-mlops-core-<project>-deploy. - Confirm the pipeline completes successfully.
- Navigate to SageMaker Console > Inference > Endpoints to confirm the endpoint is "InService".
Updating Seed Code
CloudFormation does not update existing CodeCommit repositories on subsequent deployments. To update training or deployment code: