rds_subnet_group - manage RDS database subnet groups

Author:Scott Anderson

Synopsis

New in version 1.5.

Creates, modifies, and deletes RDS database subnet groups. This module has a dependency on python-boto >= 2.5.

Options

parameter required default choices comments
aws_access_key no
    AWS access key. If not set then the value of the AWS_ACCESS_KEY environment variable is used.
    aws_secret_key no
      AWS secret key. If not set then the value of the AWS_SECRET_KEY environment variable is used.
      description no
        Database subnet group description. Only set when a new group is added.
        name yes
          Database subnet group identifier.
          region yes
            The AWS region to use. If not specified then the value of the EC2_REGION environment variable, if any, is used.
            state yes present
            • present
            • absent
            Specifies whether the subnet should be present or absent.
            subnets no
              List of subnet IDs that make up the database subnet group.

              Note

              Requires boto

              Examples


              # Add or change a subnet group
              - local_action:
                module: rds_subnet_group
                state: present
                name: norwegian-blue
                description: My Fancy Ex Parrot Subnet Group
                subnets:
                  - subnet-aaaaaaaa
                  - subnet-bbbbbbbb
              
              # Remove a parameter group
              - rds_param_group: >
                    state=absent
                    name=norwegian-blue