-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
s3-credentials list-buckets --details should show region and website URL, if configured #77
Labels
enhancement
New feature or request
Comments
Prototype: @@ -730,6 +755,9 @@ def list_buckets(buckets, details, nl, csv, tsv, **boto_options):
).items()
if key != "ResponseMetadata"
)
+ region = s3.get_bucket_location(Bucket=bucket["Name"])["LocationConstraint"]
try:
pab = s3.get_public_access_block(
Bucket=bucket["Name"],
@@ -746,6 +774,7 @@ def list_buckets(buckets, details, nl, csv, tsv, **boto_options):
)
except s3.exceptions.ClientError:
bucket_website = None
+ bucket["region"] = region
bucket["bucket_acl"] = bucket_acl
bucket["public_access_block"] = pab
bucket["bucket_website"] = bucket_website I'm seeing
|
Example output:
|
simonw
added a commit
that referenced
this issue
Aug 12, 2022
The number of API calls increased with: - #77
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Originally posted by @simonw in #21 (comment)
The text was updated successfully, but these errors were encountered: