Create IAM User through Instance profile

Step-1

Create Admin role through this Instance profile - cloud formation template.

https://bitbucket.org/scmenthusiast/scmenthusiast-utilities/src/master/s3-documents/InstanceProfileAdminRole.json

Go to Cloud formation → upload.

Step-2

Create EC2 instance and attach above admin role i.e.
Go to EC2 → identify EC2 instance → actions → attach role.

Step-3

Login to above EC2 instance, and create IAM User.

$ aws iam create-user --user-name s34jira

Step-4

Attach User policy

$ aws iam attach-user-policy --user-name s34jira --policy-arn arn:aws:iam::aws:policy/AmazonS3FullAccess

Step-5

Create Access keys

$ aws iam create-access-key --user-name s34jira