Updated example output in README for list-buckets

pull/62/head
Simon Willison 2022-01-17 18:15:11 -08:00 zatwierdzone przez GitHub
rodzic adf5c567f6
commit 6d3fa9283e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 10 dodań i 6 usunięć

Wyświetl plik

@ -213,22 +213,26 @@ Add `--csv` or `--tsv` to get back CSV or TSV data.
Shows a list of all buckets in your AWS account. Shows a list of all buckets in your AWS account.
% s3-credentials list-buckets % s3-credentials list-buckets
{ [
{
"Name": "aws-cloudtrail-logs-462092780466-f2c900d3", "Name": "aws-cloudtrail-logs-462092780466-f2c900d3",
"CreationDate": "2021-03-25 22:19:54+00:00" "CreationDate": "2021-03-25 22:19:54+00:00"
} },
{ {
"Name": "simonw-test-bucket-for-s3-credentials", "Name": "simonw-test-bucket-for-s3-credentials",
"CreationDate": "2021-11-03 21:46:12+00:00" "CreationDate": "2021-11-03 21:46:12+00:00"
} }
]
With no extra arguments this will show all available buckets - you can also add one or more explicit bucket names to see just those buckets: With no extra arguments this will show all available buckets - you can also add one or more explicit bucket names to see just those buckets:
% s3-credentials list-buckets simonw-test-bucket-for-s3-credentials % s3-credentials list-buckets simonw-test-bucket-for-s3-credentials
{ [
{
"Name": "simonw-test-bucket-for-s3-credentials", "Name": "simonw-test-bucket-for-s3-credentials",
"CreationDate": "2021-11-03 21:46:12+00:00" "CreationDate": "2021-11-03 21:46:12+00:00"
} }
]
This accepts the same `--nl`, `--csv` and `--tsv` options as `list-users`. This accepts the same `--nl`, `--csv` and `--tsv` options as `list-users`.