Eliminar un bucket
Sam se siente cada vez más segura con sus habilidades en AWS y S3.
Tras trastear un poco, decide que el bucket gim-test ya no encaja en su canalización y quiere borrarlo.
Empieza a parecer un lastre, y Sam no quiere que estorbe en su bonita lista de buckets.
Ya ha creado el cliente de boto3 para S3 y lo ha asignado a la variable s3.
Ayuda a Sam a hacer limpieza y a borrar el bucket gim-test.
Este ejercicio forma parte del curso
Introducción a AWS Boto en Python
Instrucciones del ejercicio
- Borra el bucket
'gim-test'. - Obtén la lista de buckets desde S3.
- Imprime cada
'Name'de'Buckets'.
ejercicio interactivo práctico
Prueba este ejercicio completando este código de ejemplo.
# 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['____'])