fix(examples): make Bedrock model-import job name unique per run#6076
Open
Hannah14295 wants to merge 1 commit into
Open
fix(examples): make Bedrock model-import job name unique per run#6076Hannah14295 wants to merge 1 commit into
Hannah14295 wants to merge 1 commit into
Conversation
Hannah14295
had a problem deploying
to
manual-approval
July 22, 2026 00:48 — with
GitHub Actions
Error
The OSS-import path in bedrock-modelbuilder-deployment.ipynb hardcoded job_name="import-llama-finetuned" and imported_model_name="llama-3-8b-finetuned". Bedrock's CreateModelImportJob requires a unique job name, and completed import jobs cannot be deleted, so running the notebook a second time in the same account/region fails with "The provided job name is currently in use." Append an int(time.time()) suffix to both names so the example is repeatable. time is already imported in the notebook.
Hannah14295
force-pushed
the
fix/bedrock-modelbuilder-unique-import-job-name
branch
from
July 22, 2026 00:53
e9682e6 to
420fea5
Compare
aviruthen
approved these changes
Jul 22, 2026
lucasjia-aws
approved these changes
Jul 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue
In
v3-examples/model-customization-examples/bedrock-modelbuilder-deployment.ipynb, the OSS-import cell hardcodesjob_name="import-llama-finetuned"andimported_model_name="llama-3-8b-finetuned".Bedrock's
CreateModelImportJobrequires a unique job name, and completed import jobs cannot be deleted (there is noDeleteModelImportJobAPI). So running the notebook a second time in the same account/region fails with:This makes the example non-repeatable for anyone who runs it more than once.
Fix
Append an
int(time.time())suffix to bothjob_nameandimported_model_name.timeis already imported in the notebook, so the change is minimal.Testing