# patroni.scripts.aws module

class patroni.scripts.aws.AWSConnection(cluster_name: str | None)

  Bases: `object`

  __init__(cluster_name: str | None) → None
  _tag_ebs(conn: Any, role: str) → None

    set tags, carrying the cluster name, instance role and instance id for the EBS storage

  _tag_ec2(conn: Any, role: str) → None

    tag the current EC2 instance with a cluster role

  aws_available() → bool
  on_role_change(new_role: str) → bool
  retry(*args: Any, **kwargs: Any) → Any

patroni.scripts.aws.main()