Summary: A gathering of my old aws provisioning roles into a collection. Mostly used for example sake but may help someone in the future.
Requirements:
What | how | Notes |
---|---|---|
AWS_ACCESS_KEY_ID | var or set by .aws/crednentials | |
AWS_ACCESS_KEY | var or set by .aws/crednentials | |
boto3 | pip | roles should be checking for this too |
vpc | dict | Refer to the doc |
iam | dict | Refer to the doc |
s3_buckets | dict | Refer to the doc |
Suggestions and samples:
ansible.cfg suggestion (documentation):
[defaults]
collections_path=collections/
collections/requirements.yml sample:
collections:
- name: rileyschuit.aws_provision_collection
playbook example:
- name: Do some cool aws stuff
hosts: localhost
connection: local
roles:
- rileyschuit.aws_provision_collection.provision_aws_vpc
- rileyschuit.aws_provision_collection.provision_aws_iam
Role documentation:
provision_aws_iam
provision_aws_vpc