Expand description
Utility functions for interacting with EC2 instances
Constants§
- DEPLOYER_
MAX_ PORT - Maximum port for deployer ingress
- DEPLOYER_
MIN_ PORT - Minimum port for deployer ingress
- DEPLOYER_
PROTOCOL - Protocol for deployer ingress
- MAX_
POLL_ ATTEMPTS - Maximum number of polling attempts for service status
- MAX_
SSH_ ATTEMPTS - Maximum number of SSH connection attempts before failing
- RETRY_
INTERVAL - Interval between retries
Functions§
- enable_
bbr - Enables BBR on a remote instance by copying and applying sysctl settings.
- exact_
cidr - Converts an IP address to a CIDR block
- get_
public_ ip - Fetch the current machine’s public IPv4 address
- poll_
service_ active - Polls the status of a systemd service on a remote instance until active
- poll_
service_ inactive - Polls the status of a systemd service on a remote instance until it becomes inactive
- rsync_
file - Copies a local file to a remote instance via rsync with retries
- ssh_
execute - Executes a command on a remote instance via SSH with retries