Pages

Friday, July 3, 2020

How test S3 bucket connectivity with python

Use ipython to test S3 bucket connectivity


docker exec -it app bash # ipython [1]: import boto [2]: from common.storage import S3Storage [3]: s = S3Storage() [4]: s._get_s3_config() {'host': 's3.us-east-1.amazonaws.com', 'is_secure': True, 'port': 443 'validate_certs': True} [5]: c = s._get_boto_connection(boto) [6]: c.get_all_buckets() 

No comments:

Post a Comment