Skip to content

Instantly share code, notes, and snippets.

@cmedley
Created June 2, 2017 09:26
Show Gist options
  • Select an option

  • Save cmedley/03fa8a1e6234d5846a3631880a488359 to your computer and use it in GitHub Desktop.

Select an option

Save cmedley/03fa8a1e6234d5846a3631880a488359 to your computer and use it in GitHub Desktop.
SQS message
{u'account': u'lexmarkservice', u'account_id': u'123456789010', u'region': u'us-east-1', u'action': {u'template_format': u'text', u'to': [u'resource-owner'], u'template': u'default', u'resource_ldap_lookup_username': True, u'type': u'notify', u'transport': {u'queue': u'https://sqs.us-east-1.amazonaws.com/123456789010/cloud-custodian-queue', u'type': u'sqs'}, u'subject': u'Rotate your access keys or they go away'}, u'policy': {u'template_format': u'text', u'to': [u'resource-owner'], u'template': u'default', u'resource_ldap_lookup_username': True, u'type': u'notify', u'transport': {u'queue': u'https://sqs.us-east-1.amazonaws.com/123456789010/cloud-custodian-queue', u'type': u'sqs'}, u'subject': u'Rotate your access keys or they go away'}, u'event': None, u'resources': [{u'UserName': u'cmedley', u'PasswordLastUsed': u'2017-06-02T02:40:35+00:00', u'c7n:credential-report': {u'password_next_rotation': u'2017-07-10T18:52:33+00:00', u'password_enabled': True, u'access_keys': [{u'active': True, u'last_rotated': u'2017-04-25T16:32:36+00:00', u'last_used_date': u'2017-06-01T20:21:00+00:00', u'last_used_service': u'sts', u'last_used_region': u'us-east-1'}, {u'active': True, u'last_rotated': u'2017-04-12T15:33:21+00:00', u'last_used_region': u'us-east-1', u'last_used_date': u'2017-04-12T17:47:00+00:00', u'last_used_service': u'sts'}], u'user_creation_time': u'2017-03-27T16:54:54+00:00', u'mfa_active': True, u'arn': u'arn:aws:iam::123456789010:user/cmedley', u'password_last_used': u'2017-06-01T17:23:35+00:00', u'password_last_changed': u'2017-05-11T18:52:33+00:00', u'user': u'cmedley'}, u'CreateDate': u'2017-03-27T16:54:54+00:00', u'UserId': u'ABCDEFGHIJKLMNOPQRSTUVWXY', u'Path': u'/', u'Arn': u'arn:aws:iam::123456789010:user/cmedley'}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment