mpataki.ha_aws
ansible-ha-aws
This Ansible role installs the AWS Command Line Interface (CLI) along with your AWS configuration and credentials, allowing other systems to use them.
If you want each Linux user to have their own credentials, you can include this role multiple times with different variables.
Requirements
This should work on any Debian-based system but has been tested on a Raspberry Pi running Hassbian.
Role Variables
aws_region
- Example:
us-east-1
- This sets the default AWS region for any actions performed using the CLI.
- Example:
aws_linux_user
- The Linux user who will own the credentials.
- This also determines which home folder the credentials will be stored in.
aws_linux_group
- The Linux group that will own the credentials.
aws_credentials
- A list of objects with the keys
name
,aws_access_key_id
, andaws_secret_access_key
, representing your credentials. - Example:
- A list of objects with the keys
aws_credentials:
- name: default
aws_access_key_id: <your-access-key-id>
aws_secret_access_key: <your-secret-access-key>
- name: s3-access
aws_access_key_id: <your-access-key-id-2>
aws_secret_access_key: <your-secret-access-key-2>
Dependencies
You need to sign up for an AWS account and create some credentials first.
Example Playbook
- hosts: pi
vars:
aws_credentials:
- name: default
aws_access_key_id: <your-access-key-id>
aws_secret_access_key: <your-secret-access-key>
- name: s3-access
aws_access_key_id: <your-access-key-id-2>
aws_secret_access_key: <your-secret-access-key-2>
roles:
- role: mpataki.ha-aws
License
MIT
Installa
ansible-galaxy install mpataki.ha_aws
Licenza
Unknown
Download
4.9k
Proprietario