~tribaal/txaws/xss-hardening

« back to all changes in this revision

Viewing changes to bin/txaws-list-buckets

  • Committer: Jamu Kakar
  • Author(s): Gustavo Niemeyer
  • Date: 2011-04-13 15:03:03 UTC
  • mfrom: (78.1.3 trunk)
  • Revision ID: jkakar@kakar.ca-20110413150303-yc0lk9u7myise41x
Merged s3-bucket-paths [a=niemeyer] [r=jkakar] [f=759897]

It is now possible to use S3 with implementations that only provide IP
address-based accesss (instead of URL-based).

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
options, args = parse_options(__doc__.strip())
32
32
creds = AWSCredentials(options.access_key, options.secret_key)
33
33
region = AWSServiceRegion(
34
 
    creds=creds, region=options.region, s3_endpoint=options.url)
 
34
    creds=creds, region=options.region, s3_uri=options.url)
35
35
client = region.get_s3_client()
36
36
 
37
37
d = client.list_buckets()