Boto3: aws s3 ls

From wikieduonline
Revision as of 09:51, 15 March 2022 by Welcome (talk | contribs) (Created page with "<pre> #!/usr/bin/env python3 import boto3 def aws_s3_ls(): mys3conn = boto3.client("s3") mys3list = mys3conn.list_buckets() print (mys3list) def main (): aws_s3_ls...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
#!/usr/bin/env python3

import boto3


def aws_s3_ls():
  mys3conn = boto3.client("s3")
  mys3list = mys3conn.list_buckets()
  print (mys3list)

def main ():
  aws_s3_ls()

if __name__ == "__main__":
  main()

See also

Advertising: