DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

Check if a key exists in an S3 Bucket using Boto3 Python

1 year ago towardsthecloud.com
Check if a key exists in an S3 Bucket using Boto3 Python

Summary: This is a summary of an article originally published by Towards the Cloud. Read the full original article here →

To check if an object exists in a bucket using Boto3, Call the head_object method on the S3 client, passing in the bucket and key. If the key exists, this method will return metadata about the object. If not, it will raise an exception.

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com