bucket_replication#

Exec functions for S3 bucket’s replication configurations.

async idem_aws.exec.aws.s3.bucket_replication.get(hub, ctx, name: str, resource_id: str) Dict[source]#

Returns the replication configuration of a bucket.

Parameters:
  • name (str) – The name of the Idem state.

  • resource_id (str) – AWS S3 bucket name.

Examples

Calling from the CLI:

$ idem exec aws.s3.bucket.get name="bucket-replication-name" resource_id="bucket-replication-id"

Using in a state:

get_a_bucket_replication:
  exec.run:
    - path: aws.s3.bucket_replication.get
    - kwargs:
       name: bucket-replication-name
       resource_id: bucket-replication-id