Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flaconi/ansible-role-aws-s3-bucket
Ansible role to create an arbitrary number of S3 buckets
https://github.com/flaconi/ansible-role-aws-s3-bucket
ansible ansible-role aws role s3 s3-bucket
Last synced: about 5 hours ago
JSON representation
Ansible role to create an arbitrary number of S3 buckets
- Host: GitHub
- URL: https://github.com/flaconi/ansible-role-aws-s3-bucket
- Owner: Flaconi
- License: apache-2.0
- Created: 2018-05-28T15:04:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-13T16:57:19.000Z (almost 2 years ago)
- Last Synced: 2023-03-01T19:23:33.675Z (over 1 year ago)
- Topics: ansible, ansible-role, aws, role, s3, s3-bucket
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 2
- Watchers: 25
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible role: AWS VPC
This role handles the creation of AWS S3 buckets
[![Build Status](https://travis-ci.org/Flaconi/ansible-role-aws-s3-bucket.svg?branch=master)](https://travis-ci.org/Flaconi/ansible-role-aws-s3-bucket)
[![Version](https://img.shields.io/github/tag/Flaconi/ansible-role-aws-s3-bucket.svg)](https://github.com/Flaconi/ansible-role-aws-s3-bucket/tags)
[![Ansible Galaxy](https://img.shields.io/ansible/role/d/25927.svg)](https://galaxy.ansible.com/Flaconi/aws-s3-bucket/)## Requirements
* Ansible 2.5
## Additional variables
Additional variables that can be used (either as `host_vars`/`group_vars` or via command line args):
| Variable | Description |
|-----------------------------|------------------------------|
| `aws_s3_bucket_profile` | Boto profile name to be used |
| `aws_bucket_default_region` | Default region to use |
| `aws_bucket_default_policy` | Default policy to use |## Example definition
#### Required parameter only
```yml
aws_s3_buckets:
- name: my-first-bucket
- name: my-second-bucket
```
#### All available parameter
```yml
aws_s3_buckets:
- name: my-first-bucket
policy: '{}'
versioning: True
region: eu-central-1
tags:
- key: env
val: development
- key: department
val: infra
- name: my-second-bucket
policy: '{}'
versioning: True
region: eu-central-1
tags:
- key: env
val: development
- key: department
val: infra
```## Testing
#### Requirements
* Docker
* [yamllint](https://github.com/adrienverge/yamllint)#### Run tests
```bash
# Lint the source files
make lint# Run integration tests with default Ansible version
make test# Run integration tests with custom Ansible version
make test ANSIBLE_VERSION=2.4
```