RDS modify error

46 views
Skip to first unread message

jjef...@tendrilinc.com

unread,
Jun 12, 2015, 12:12:26 PM6/12/15
to ansible...@googlegroups.com
I'm running into a problem trying to use the RDS module to modify an existing RDS instance.


When running this command (attempting to modify the instance from db.t2.small to db.t2.medium):


ansible-playbook rds.yml -e "command=modify application=soa db_admin_user=****** db_admin_user_pwd='******' env=dev instance_name=***** instance_type=db.t2.medium iops=1000 read_only_replica=false size=200 subnet=******* vpc_security_groups=*******"


I get the following error:


TASK: [rds | rds ] ************************************************************ 

failed: [localhost] => {"failed": true}

msg: Both storage size and iops need to be specified when modifying storage size or iops on an DB Instance that has iops



Here's what the play looks like for a modify:


---

- rds:

    apply_immediately: "{{ apply_immediately }}"

    command: "{{ command }}"

    instance_name: "{{ instance_name }}"

    size: "{{ size }}"

    instance_type: "{{ instance_type }}"

    iops: "{{ iops }}"

    password: "{{ db_admin_user_pwd }}"

    parameter_group: "{{ parameter_group }}"

    multi_zone: "{{ multi_zone }}"

    region: "{{ region }}"

    vpc_security_groups: "{{ vpc_security_groups }}"

    wait: "{{ wait }}"

    wait_timeout: "{{ wait_timeout }}"



Not sure what to do here, since I am passing in both size and iops in with extra variables, and those values exist in the playbook.


Any assistance would be appreciated.

Reply all
Reply to author
Forward
0 new messages