{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/21735","labels_url":"https://api.github.com/repos/saltstack/salt/issues/21735/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/21735/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/21735/events","html_url":"https://github.com/saltstack/salt/pull/21735","id":62451124,"number":21735,"title":"add manage ec2 keys state","user":{"login":"tsaridas","id":6619221,"avatar_url":"https://avatars.githubusercontent.com/u/6619221?v=3","gravatar_id":"","url":"https://api.github.com/users/tsaridas","html_url":"https://github.com/tsaridas","followers_url":"https://api.github.com/users/tsaridas/followers","following_url":"https://api.github.com/users/tsaridas/following{/other_user}","gists_url":"https://api.github.com/users/tsaridas/gists{/gist_id}","starred_url":"https://api.github.com/users/tsaridas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsaridas/subscriptions","organizations_url":"https://api.github.com/users/tsaridas/orgs","repos_url":"https://api.github.com/users/tsaridas/repos","events_url":"https://api.github.com/users/tsaridas/events{/privacy}","received_events_url":"https://api.github.com/users/tsaridas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Medium%20Change","name":"Medium Change","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-03-17T16:37:55Z","updated_at":"2015-03-17T17:54:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/saltstack/salt/pulls/21735","html_url":"https://github.com/saltstack/salt/pull/21735","diff_url":"https://github.com/saltstack/salt/pull/21735.diff","patch_url":"https://github.com/saltstack/salt/pull/21735.patch"},"body":"- create_key\r\n- import_key\r\n- delete_key"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/82497197","html_url":"https://github.com/saltstack/salt/pull/21735#issuecomment-82497197","issue_url":"https://api.github.com/repos/saltstack/salt/issues/21735","id":82497197,"user":{"login":"tsaridas","id":6619221,"avatar_url":"https://avatars.githubusercontent.com/u/6619221?v=3","gravatar_id":"","url":"https://api.github.com/users/tsaridas","html_url":"https://github.com/tsaridas","followers_url":"https://api.github.com/users/tsaridas/followers","following_url":"https://api.github.com/users/tsaridas/following{/other_user}","gists_url":"https://api.github.com/users/tsaridas/gists{/gist_id}","starred_url":"https://api.github.com/users/tsaridas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsaridas/subscriptions","organizations_url":"https://api.github.com/users/tsaridas/orgs","repos_url":"https://api.github.com/users/tsaridas/repos","events_url":"https://api.github.com/users/tsaridas/events{/privacy}","received_events_url":"https://api.github.com/users/tsaridas/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T17:54:03Z","updated_at":"2015-03-17T17:54:03Z","body":"@isbm probably I did not explain it correctly.\r\nSo, \r\ncreate_key: Amazon creates a private key for you and you save it locally. Amazon keeps the public key in order to be added to the servers so you can login by using the private key.\r\n\r\nimport_key: Amazon imports your public key and you use an already generated private key . The private key is one that you have generated on your own.\r\n\r\nWhat I'm saying is that if a user add both private_key and public_key in the state it doesn't make sense and hence should generate an error since you either want to create a new private key or upload the public of an existing.\r\n\r\nWhat I'll try to do is merge both functions and have an error if user did a mistake."}}