{"action":"created","issue":{"url":"https://api.github.com/repos/spulec/moto/issues/641","repository_url":"https://api.github.com/repos/spulec/moto","labels_url":"https://api.github.com/repos/spulec/moto/issues/641/labels{/name}","comments_url":"https://api.github.com/repos/spulec/moto/issues/641/comments","events_url":"https://api.github.com/repos/spulec/moto/issues/641/events","html_url":"https://github.com/spulec/moto/issues/641","id":161467690,"number":641,"title":"manually input an ec2 event","user":{"login":"TKim18","id":11166477,"avatar_url":"https://avatars.githubusercontent.com/u/11166477?v=3","gravatar_id":"","url":"https://api.github.com/users/TKim18","html_url":"https://github.com/TKim18","followers_url":"https://api.github.com/users/TKim18/followers","following_url":"https://api.github.com/users/TKim18/following{/other_user}","gists_url":"https://api.github.com/users/TKim18/gists{/gist_id}","starred_url":"https://api.github.com/users/TKim18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TKim18/subscriptions","organizations_url":"https://api.github.com/users/TKim18/orgs","repos_url":"https://api.github.com/users/TKim18/repos","events_url":"https://api.github.com/users/TKim18/events{/privacy}","received_events_url":"https://api.github.com/users/TKim18/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-21T15:28:00Z","updated_at":"2016-07-10T01:22:27Z","closed_at":"2016-07-10T01:22:27Z","body":"Currently trying to make a unit test to see if my Python script correctly returns scheduled EC2 events. There is no way to schedule an EC2 event to my knowledge (different from setting a rule on AWS CloudWatch because it's propagated by AWS itself) so I want to manually input the event in the output format of the ec2 describe_instance_status call (similar to the EC2_INSTANCE_STATUS XML seen at the bottom of https://github.com/spulec/moto/blob/master/moto/ec2/responses/instances.py). Is there any way to perform this or perhaps simulate such an EC2 event through moto?"},"comment":{"url":"https://api.github.com/repos/spulec/moto/issues/comments/231565214","html_url":"https://github.com/spulec/moto/issues/641#issuecomment-231565214","issue_url":"https://api.github.com/repos/spulec/moto/issues/641","id":231565214,"user":{"login":"spulec","id":292606,"avatar_url":"https://avatars.githubusercontent.com/u/292606?v=3","gravatar_id":"","url":"https://api.github.com/users/spulec","html_url":"https://github.com/spulec","followers_url":"https://api.github.com/users/spulec/followers","following_url":"https://api.github.com/users/spulec/following{/other_user}","gists_url":"https://api.github.com/users/spulec/gists{/gist_id}","starred_url":"https://api.github.com/users/spulec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spulec/subscriptions","organizations_url":"https://api.github.com/users/spulec/orgs","repos_url":"https://api.github.com/users/spulec/repos","events_url":"https://api.github.com/users/spulec/events{/privacy}","received_events_url":"https://api.github.com/users/spulec/received_events","type":"User","site_admin":false},"created_at":"2016-07-10T01:22:27Z","updated_at":"2016-07-10T01:22:27Z","body":"Not ideal, but you can do something like this to manually modify the backend.\r\n\r\n```python\r\nfrom moto.ec2.models import ec2_backends\r\nec2_backends['us-east-1'].reservations[reservation_id] ...\r\n```\r\n\r\nPlease reopen if that doesn't work."}}
{"actor":{"display_login":"spulec"}}