# Create Security group error

**URL:** <https://forum.ansible.com/t/create-security-group-error/26523>\
**Category:** Ansible Project\
**Created:** [January 21, 2018, 6:04am UTC](https://forum.ansible.com/t/create-security-group-error/26523 "2018-01-21T06:04:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reddy\_Myyb](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@Reddy\_Myyb](https://forum.ansible.com/u/Reddy_Myyb)\
**Post date:** [January 21, 2018, 6:04am UTC](https://forum.ansible.com/t/create-security-group-error/26523/1 "2018-01-21T06:04:12Z")

</div>

I’m trying to create a security group but there’s an error as below. Please suggest where I’m going wrong.

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ClientError: An error occurred (AuthFailure) when calling the DescribeSecurityGroups operation: Credential must have exactly 5 slash-delimited elements, e.g. keyid/date/region/service/term, got ‘Dt4q191m7+gPbrnkQfEZT9QUoIWDVyq0ous/TS76/20180121/ap-southeast-2/ec2/aws4\_request,’  
fatal: [localhost]: FAILED! =\> {“changed”: false, “error”: {“code”: “AuthFailure”, “message”: “Credential must have exactly 5 slash-delimited elements, e.g. keyid/date/region/service/term, got ‘Dt4q191m7+gPbrnkQfEZT9QUoIWDVyq0ous/TS76/20180121/ap-southeast-2/ec2/aws4\_request,’”}, “msg”: “Error in describe\_security\_groups: An error occurred (AuthFailure) when calling the DescribeSecurityGroups operation: Credential must have exactly 5 slash-delimited elements, e.g. keyid/date/region/service/term, got ‘Dt4q191m7+gPbrnkQfEZT9QUoIWDVyq0ous/TS76/20180121/ap-southeast-2/ec2/aws4\_request,’”, “response\_metadata”: {“http\_headers”: {“date”: “Sun, 21 Jan 2018 05:46:05 GMT”, “server”: “AmazonEC2”, “transfer-encoding”: “chunked”}, “http\_status\_code”: 401, “request\_id”: “49ed7240-3659-4bb5-9f8a-2aa4da77b2ce”, “retry\_attempts”: 0}}

Please find below my playbook and role.

---

<div class="post-metadata">

**Author:** ![Reddy\_Myyb](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@Reddy\_Myyb](https://forum.ansible.com/u/Reddy_Myyb)\
**Post date:** [January 22, 2018, 5:07am UTC](https://forum.ansible.com/t/create-security-group-error/26523/2 "2018-01-22T05:07:03Z")

</div>

I found the issue ! I’m using the keys incorrectly, corrected and working fine !
