Delete SageMaker Notebook instances across regions#1
Open
mikerichardson wants to merge 72 commits intomanjunathadinka:masterfrom
Open
Delete SageMaker Notebook instances across regions#1mikerichardson wants to merge 72 commits intomanjunathadinka:masterfrom
mikerichardson wants to merge 72 commits intomanjunathadinka:masterfrom
Conversation
added 30 commits
February 17, 2018 03:08
…SESSION_TOKEN use).
…clear-aws.sh' that will clear set AWS environment varialbles.
…s in aws-iam-rotate-keys.sh.
…ual-mfa-devices'; UI enhancements.
…tively pull MFA session init time via the CLI).
…n init times, etc.
…n expiration times internally (and much more).
…ing.sh to status.sh
…outputs. Other fixes.
…paces in profile names.
…w output with '--debug/-d' arg)
…te background (forced black background)
…able-vmfa-device.sh
…, sourceable file renamed
…on handling, improved guidance.
… script name change in the utility scripts.
…y.txt: allow GetRole without MFA, sorted API lists
…ile (valid by AWS docs).
…minated the dependency for the default profile
This script searches for and deletes Amazon SageMaker Notebook instances across all AWS regions, including opt-in regions. Features: - Scans all regions (including opt-in regions) - Lists all SageMaker notebook instances in each region - Stops running notebooks before deletion - Provides detailed progress and summary statistics - Includes error handling and prerequisite checks
Modified the script to only scan AWS regions that are enabled for the account (opt-in-not-required or opted-in status), excluding regions that have not been opted-in. This prevents unnecessary API calls to disabled regions and focuses on regions actually in use.
Removed the notebook stopping logic to simplify the script. The script now assumes all notebook instances are already stopped and proceeds directly to deletion. This makes the script faster and simpler for scenarios where instances are known to be stopped. Changes: - Removed stop_notebook() and get_notebook_status() functions - Simplified main processing loop to delete directly - Added note in script header about stopped instance assumption - Added helpful error message if deletion fails due to running instance
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.
No description provided.