Manage Better Stack with Ansible.
ansible-galaxy collection install https://betterstack.sh/releases/latest/betterstack-betterstack.tar.gzGuide and example playbook: https://betterstack.com/docs/cloud/getting-started/ansible/
betterstack.betterstack.firewall: Create, update and delete firewalls in Cloud.betterstack.betterstack.server: Create, update and delete servers in Cloud.betterstack.betterstack.ssh_key: Create, update and delete SSH keys in Cloud.betterstack.betterstack.volume: Create, update and delete volumes in Cloud.betterstack.betterstack.servers(inventory): Lists the servers of every zone as hosts, grouped by their tags and zone.
The modules read the API token from api_token, or from BETTERSTACK_API_TOKEN. Set it to a global API token, which works for every product and Cloud, or to a team API token, which works only for its own product.
The modules read availability_zone from the option or from BETTERSTACK_AVAILABILITY_ZONE. Use the zone your resources are in, such as us-west-2a. Each zone is separate.
Set the token and availability zone once per play with module_defaults group group/betterstack.betterstack.cloud.
The servers inventory accepts the token as api_token or from BETTERSTACK_API_TOKEN, and reads every availability zone unless its file lists availability_zones.
Every module supports --check and --diff. A module finds the object by its unique field, changes only what differs, and reports changed only when it sent a change.