bucket#
Exec module for managing s3 bucket.
- async idem_aws.exec.aws.s3.bucket.get(hub, ctx, name: str, resource_id: str) Dict [source]#
Returns the S3 bucket.
Examples
Calling from the CLI:
$ idem exec aws.s3.bucket.get name="bucket-name" resource_id="bucket-id"
Using in a state:
get_a_bucket: exec.run: - path: aws.s3.bucket.get - kwargs: name: bucket-name resource_id: bucket-id
- async idem_aws.exec.aws.s3.bucket.list_(hub, ctx, name: str = None) Dict [source]#
Fetch a list of bucket from AWS that are owned by the calling user.
The function returns empty list when no resource is found.
- Parameters:
name (str, Optional) – The name of the Idem state.
Examples
Calling from the CLI:
$ idem exec aws.s3.bucket.list name="bucket-search-for-user-A"
Using in a state:
buckets_list: exec.run: - path: aws.s3.bucket.list