I found out that I was using older ansible version v2.6.2. This is fixed in
later version of ansible.
Now I've updated to latest ansible v2.7.4 version and deleting AWS user is
working.
I can delete like this:
- name: Absent iam user
iam:
iam_type: user
state: absent
name: username
So, this is resolved.
On Thursday, December 13, 2018 at 10:52:57 AM UTC+5, [email protected] wrote:
>
> I'm trying to delete aws user like this:
>
> - name: Delete AWS users
>
> iam:
> name: userName
> iam_type: user
> state: absent
>
>
> It gives following error:
>
> Failed to delete login profile: BotoServerError: 404 Not Found
> <ErrorResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/">
> <Error>
> <Type>Sender</Type>
> <Code>NoSuchEntity</Code>
> <Message>Login Profile for User XXXX cannot be found.</Message>
> </Error>
> <RequestId>asdfsdf-fe98-11e8-23fr-035cerw9269a</RequestId>
> </ErrorResponse>
>
> If I try to delete with "iam_user", it says "Delete first user access
> keys". How can I delete aws user?
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/568b6f2b-f7d3-412a-a8f5-efb5ad192755%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.