{"image_url":null,"url":"https://kidnohr.hatenadiary.com/entry/2018/05/15/121712","blog_title":"\u65e5\u306b\u65e5\u306b\u5206\u304b\u3089\u3093\u3053\u3068\u304c\u5897\u3048\u3066\u3044\u304f\u2026","version":"1.0","author_name":"kidnohr","height":"190","provider_name":"Hatena Blog","blog_url":"https://kidnohr.hatenadiary.com/","author_url":"https://blog.hatena.ne.jp/kidnohr/","type":"rich","width":"100%","provider_url":"https://hatena.blog","categories":[],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkidnohr.hatenadiary.com%2Fentry%2F2018%2F05%2F15%2F121712\" title=\"Python \u3067\u306e S3 \u304b\u3089\u30d5\u30a1\u30a4\u30eb\u53d6\u5f97(boto3) - \u65e5\u306b\u65e5\u306b\u5206\u304b\u3089\u3093\u3053\u3068\u304c\u5897\u3048\u3066\u3044\u304f\u2026\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"Python \u3067\u306e S3 \u304b\u3089\u30d5\u30a1\u30a4\u30eb\u53d6\u5f97(boto3)","published":"2018-05-15 12:17:12","description":"boto3\u3068\u3044\u3046\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u5b58\u5728\u3057\u3066\u3001\u305d\u308c\u3092\u4f7f\u3063\u3066S3 \u306e\u30d5\u30a1\u30a4\u30eb\u304c\u53d6\u5f97\u3067\u304d\u308b\u3002 \u30d5\u30a1\u30a4\u30eb\u306e\u30ad\u30fc\u53d6\u5f97 In [1]: import boto3 In [7]: import botocore In [21]: s3 = boto3.resource('s3', aws_access_key_id=S3_ACCESS_KEY, aws_secret_access_key=S3_SECRET_KEY,) In [22]: try: ...: s3.meta.client.head_bucket(Bucket=S3_BUCKET) ...: except Exception as e: ...: p\u2026"}