Git Product home page Git Product logo

Comments (5)

simonw avatar simonw commented on September 28, 2024

Relevant to:

from s3-credentials.

simonw avatar simonw commented on September 28, 2024

Example output from my prototype:

{
    "Name": "dogsheep-photos-simon",
    "CreationDate": "2020-04-18 19:36:25+00:00",
    "bucket_acl": {
        "Owner": {
            "DisplayName": "swillison",
            "ID": "36b2eeee501c5952a8ac119f9e5212277a4c01eccfa8d6a9d670bba1e2d5f441"
        },
        "Grants": [
            {
                "Grantee": {
                    "DisplayName": "swillison",
                    "ID": "36b2eeee501c5952a8ac119f9e5212277a4c01eccfa8d6a9d670bba1e2d5f441",
                    "Type": "CanonicalUser"
                },
                "Permission": "FULL_CONTROL"
            }
        ]
    },
    "public_access_block": {
        "BlockPublicAcls": true,
        "IgnorePublicAcls": true,
        "BlockPublicPolicy": true,
        "RestrictPublicBuckets": true
    },
    "bucket_website": null
}

from s3-credentials.

simonw avatar simonw commented on September 28, 2024

Since this is an expensive operation per bucket, I'm going to add the ability to pass one or more specific bucket names to the command.

from s3-credentials.

simonw avatar simonw commented on September 28, 2024

Documentation: https://github.com/simonw/s3-credentials/blob/8e207980a23738e5e9119902d1314d51669431e4/README.md#list-buckets

from s3-credentials.

simonw avatar simonw commented on September 28, 2024

Here's the updated --help:

% s3-credentials list-buckets --help
Usage: s3-credentials list-buckets [OPTIONS] [BUCKETS]...

  List buckets - defaults to all, or pass one or more bucket names

Options:
  --details             Include extra bucket details (slower)
  --array               Output a valid JSON array
  --nl                  Output newline-delimited JSON
  --access-key TEXT     AWS access key ID
  --secret-key TEXT     AWS secret access key
  --session-token TEXT  AWS session token
  --endpoint-url TEXT   Custom endpoint URL
  --help                Show this message and exit.

from s3-credentials.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.