-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot create snapshot before deleting RDS instance #1
Comments
I've just hit this problem too. |
I've done a PR on ansible-modules-core which fixes this bug. The solution will be to update Ansible once it's rolled into a release. |
Thanks a lot @flyte. I fixed it locally by patching both boto and ansible and was able to keep going. It would be great to see a fix upstream. |
You could also have separated out the snapshot and deletion into two actions. That's what I've had to do for now - making sure to tell the snapshot command to wait for completion! - name: Take snapshot of RDS instance
rds:
aws_access_key: "{{ aws_access_key }}"
aws_secret_key: "{{ aws_secret_key }}"
command: snapshot
instance_name: "{{ rds_db.instance.id }}"
region: eu-west-1
snapshot: "mysnapshot-{{ ansible_date_time.epoch }}"
wait: yes
register: rds_snapshot
- name: Remove RDS instance
rds:
aws_access_key: "{{ aws_access_key }}"
aws_secret_key: "{{ aws_secret_key }}"
command: delete
instance_name: "{{ rds_db.instance.id }}"
region: eu-west-1 |
The text was updated successfully, but these errors were encountered: