We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f2444a commit 940e5e2Copy full SHA for 940e5e2
boto3_eg/list_s3_buckets.py
@@ -0,0 +1,7 @@
1
+import boto3
2
+
3
+session = boto3.session.Session(profile_name="default",region_name="aps-south-1")
4
+s3 = session.client(service_name="s3",region_name="ap-south-1")
5
6
+for each_bucket in s3.list_buckets()['Buckets']:
7
+ print(each_bucket["Name"])
0 commit comments