LoslegenKostenlos loslegen

Deleting a bucket

Sam is feeling more and more confident in her AWS and S3 skills. After playing around for a bit, she decides that the gim-test bucket no longer fits her pipeline and wants to delete it. It's starting to feel like dead weight, and Sam doesn't want it littering her beautiful bucket list.

She has already created the boto3 client for S3, and assigned it to the s3 variable.

Help Sam do some clean up, and delete the gim-test bucket.

Diese Übung ist Teil des Kurses

Introduction to AWS Boto in Python

Kurs anzeigen

Anleitung zur Übung

  • Delete the 'gim-test' bucket.
  • Get the list of buckets from S3.
  • Print each 'Buckets' 'Name'.

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

# Delete the gim-test bucket
s3.____(____='gim-test')

# Get the list_buckets response
response = s3.____()

# Print each Buckets Name
for bucket in response['____']:
    print(bucket['____'])
Code bearbeiten und ausführen