patroni.scripts.aws module

class patroni.scripts.aws.AWSConnection(cluster_name: Optional[str])

Bases: object

__init__(cluster_name: Optional[str]) → None

Initialize self. See help(type(self)) for accurate signature.

_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, **kwargs) → Any
patroni.scripts.aws.main()