Removing Sagemaker Studio Entries in AWS CLI Output


How can I eliminate the Sagemaker Studio entries so that when I execute aws s3 ls --profile admin-1, the AWS CLI doesn't display any output?

Despite not having any SageMaker domains under my ownership, the AWS CLI presented two Sagemaker Studio entries when I used aws s3 ls --profile admin-1.

2023-11-01 16:13:02 sagemaker-studio-111122223333-XXXXXXXXXXX
2023-11-01 15:58:50 sagemaker-studio-111122223333-OOOOOOOOOOO
asked 8 months ago205 views
1 Answer
Accepted Answer

The aws s3 ls command as used will list S3 buckets visible to the admin-1 profile. Therefore, the two entries you see returned are not SageMaker domains, but rather S3 buckets with sagemaker in the name. A likely scenario is that these buckets were created and being used with SageMaker domains, and then even though the domains were deleted, the associated S3 buckets were left in place. An appropriate CLI command to check SageMaker domains visible to the admin-1 profile is aws sagemaker list-domains.

answered 8 months ago
  • Thank you for your reply. I managed to delete those S3 buckets.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions