aws-s3-bucket

Ansible role: AWS VPC

This role handles the creation of AWS S3 buckets

Build Status Version Ansible Galaxy

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

aws_s3_buckets:
  - name: my-first-bucket
  - name: my-second-bucket

All available parameter

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

Run tests

# 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
About

Creates an arbitrary number of VPC's on AWS

Install
ansible-galaxy install Flaconi/ansible-role-aws-s3-bucket
GitHub repository
License
apache-2.0
Downloads
50