Skip to content

Instantly share code, notes, and snippets.

View cmaurer's full-sized avatar

Christian Maurer cmaurer

View GitHub Profile
@cmaurer
cmaurer / AWS_IDS.md
Last active August 3, 2021 14:01
A collection of regular expressions for AWS Ids

AWS ID Regex's

I needed one place where all of the regex's are located. I got tired of trying to track them down.

ARN - PCRE

^arn:(?P<partition>[^:\n]*):(?P<service>[^:\n]*):(?P<region>[^:\n]*):(?P<account_id>[^:\n]*):(?P<ignore>(?P<resource_type>[^:\/\n]*)[:\/])?(?P<resource>.*)$

lambda example