{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/10627","labels_url":"https://api.github.com/repos/ansible/ansible/issues/10627/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/10627/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/10627/events","html_url":"https://github.com/ansible/ansible/issues/10627","id":66684085,"number":10627,"title":"RDS snapshot and restore broken","user":{"login":"m-barthelemy","id":2519084,"avatar_url":"https://avatars.githubusercontent.com/u/2519084?v=3","gravatar_id":"","url":"https://api.github.com/users/m-barthelemy","html_url":"https://github.com/m-barthelemy","followers_url":"https://api.github.com/users/m-barthelemy/followers","following_url":"https://api.github.com/users/m-barthelemy/following{/other_user}","gists_url":"https://api.github.com/users/m-barthelemy/gists{/gist_id}","starred_url":"https://api.github.com/users/m-barthelemy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-barthelemy/subscriptions","organizations_url":"https://api.github.com/users/m-barthelemy/orgs","repos_url":"https://api.github.com/users/m-barthelemy/repos","events_url":"https://api.github.com/users/m-barthelemy/events{/privacy}","received_events_url":"https://api.github.com/users/m-barthelemy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible/labels/bug_report","name":"bug_report","color":"fbca04"},{"url":"https://api.github.com/repos/ansible/ansible/labels/P3","name":"P3","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-04-06T19:23:27Z","updated_at":"2015-07-02T05:14:29Z","closed_at":null,"body":"Using Ansible 1.9.0.1, we're unable to snapshot an RDS instance or to restore a snapshot.\r\nTried with boto 2.32 and 2.37\r\n\r\nWe use the following task:\r\n\r\n```\r\n- rds: >\r\n    command=restore\r\n    instance_name=\"{{newinstance_name}}\"\r\n    snapshot=\"{{snap_name}}\"\r\n    size=150\r\n    instance_type=db.m3.medium\r\n    subnet=\"{{vpc_db_subnet}}\"\r\n    wait=yes\r\n    wait_timeout=1200\r\n  when: env != \"production\" and newinstance_name != \"xxxx\" \r\n  register: newrds\r\n```\r\n\r\nAnsible throws the following error:\r\n\r\n```\r\nTASK: [rds-clone | rds command=restore instance_name=\"{{newinstance_name}}\" snapshot=\"{{snap_name}}\" size=150 instance_type=db.m3.medium subnet=\"{{vpc_db_subnet}}\" wait=yes wait_timeout=1200\r\n] *** \r\nfailed: [localhost] => {\"failed\": true, \"parsed\": false}\r\nTraceback (most recent call last):\r\n  File \"/home/ubuntu/.ansible/tmp/ansible-tmp-1428346104.18-118692723765023/rds\", line 2807, in <module>\r\n    main()\r\n  File \"/home/ubuntu/.ansible/tmp/ansible-tmp-1428346104.18-118692723765023/rds\", line 1008, in main\r\n    invocations[module.params.get('command')](module, conn)\r\n  File \"/home/ubuntu/.ansible/tmp/ansible-tmp-1428346104.18-118692723765023/rds\", line 864, in restore_db_instance\r\n    resource = await_resource(conn, result, 'available', module)\r\n  File \"/home/ubuntu/.ansible/tmp/ansible-tmp-1428346104.18-118692723765023/rds\", line 614, in await_resource\r\n    module.fail_json(msg=\"Timeout waiting for resource %s\" % resource.id)\r\nAttributeError: RDS2DBInstance instance has no attribute 'id'\r\n```"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/117908950","html_url":"https://github.com/ansible/ansible/issues/10627#issuecomment-117908950","issue_url":"https://api.github.com/repos/ansible/ansible/issues/10627","id":117908950,"user":{"login":"sonicgao","id":130626,"avatar_url":"https://avatars.githubusercontent.com/u/130626?v=3","gravatar_id":"","url":"https://api.github.com/users/sonicgao","html_url":"https://github.com/sonicgao","followers_url":"https://api.github.com/users/sonicgao/followers","following_url":"https://api.github.com/users/sonicgao/following{/other_user}","gists_url":"https://api.github.com/users/sonicgao/gists{/gist_id}","starred_url":"https://api.github.com/users/sonicgao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonicgao/subscriptions","organizations_url":"https://api.github.com/users/sonicgao/orgs","repos_url":"https://api.github.com/users/sonicgao/repos","events_url":"https://api.github.com/users/sonicgao/events{/privacy}","received_events_url":"https://api.github.com/users/sonicgao/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T05:14:29Z","updated_at":"2015-07-02T05:14:29Z","body":"+1"}}