aws-s3-buckets
Returns a list of all AWS S3 buckets.
aws-s3-buckets [profile=PROFILE] [region=REGION]
- profile=PROFILE
- The identifier of AWS connect profile
- region=REGION
- AWS region
AWS IAM Policy
To use this command, you must allow the below permissions in your AWS IAM policy:
- s3:ListAllMyBuckets
- s3:GetBucketLocation
- s3:GetBucketAcl
Output Fields
Field | Type | Name | Description |
---|---|---|---|
aws_profile | String | Connect profile | The identifier of AWS connect profile |
region | String | Region | e.g. ap-northeast-2 |
name | String | Bucket name | |
created | Date | Created at | |
owner_id | String | Owner ID | |
owner_name | String | Owner name | |
grants | List | Grants | Elements with grantee_id, grantee_type_id, permission properties |