sansible.aws_dynamo_db

sansible_aws_dynamo_db

Master: Build Status Develop: Build Status

This role provisions a Dynamo DB table via Cloudformation.

Installation and Dependencies

To install run ansible-galaxy install sansible.aws_dynamo_db or add this to your roles.yml.

- name: sansible.aws_dynamo_db
  version: v3.0

and run ansible-galaxy install -p ./roles -r roles.yml

Examples

Simply this include role in your playbook, required variables for a Dynamo DB table are available from the AWS Docs:

- name: Install and configure sansible_aws_dynamo_db
  hosts: "somehost"

  roles:
    - role: sansible.aws_dynamo_db
      sansible_aws_dynamo_db_attribute_definitions:
        - name: "name"
          type: "S"
        - name: "value"
          type: "S"
      sansible_aws_dynamo_db_key_schema:
        - name: "name"
          key_type: "HASH"
      sansible_aws_dynamo_db_provisioned_throughput_read: 1
      sansible_aws_dynamo_db_provisioned_throughput_write: 1
      sansible_aws_dynamo_db_region: eu-west-1
      sansible_aws_dynamo_db_stack_name: "test-dynamo-db"
      sansible_aws_dynamo_db_table_name: "test-dynamo-db"
      sansible_aws_dynamo_db_tags:
        Name: "test-dynamo-db"

Dry run

You can generate and show the CF template only by using the dry run variable like so:

- name: Install and configure sansible_aws_dynamo_db
  hosts: "somehost"

  roles:
    - role: sansible.aws_dynamo_db
      sansible_aws_dynamo_db_attribute_definitions:
        - name: "name"
          type: "S"
        - name: "value"
          type: "S"
      sansible_aws_dynamo_db_billing_mode: PROVISIONED
      sansible_aws_dynamo_db_key_schema:
        - name: "name"
          key_type: "HASH"
      sansible_aws_dynamo_db_dry_run: no
      sansible_aws_dynamo_db_provisioned_throughput_read: 1
      sansible_aws_dynamo_db_provisioned_throughput_write: 1
      sansible_aws_dynamo_db_region: eu-west-1
      sansible_aws_dynamo_db_stack_name: "test-dynamo-db"
      sansible_aws_dynamo_db_table_name: "test-dynamo-db"
      sansible_aws_dynamo_db_tags:
        Name: "test-dynamo-db"
About

Creates a Dynamo DB table via Cloudformation

Install
ansible-galaxy install sansible.aws_dynamo_db
GitHub repository
License
mit
Downloads
5.5k
Owner
See https://github.com/sansible/sansible for more information