Last active
March 23, 2019 19:01
-
-
Save JohnPreston/4fb5cf7c54e421c903cdc2141012c655 to your computer and use it in GitHub Desktop.
Useful python re regexp for AWS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lambda_layer_pattern = r'(^arn:aws:lambda:[a-z]{2}-[a-z]{1,12}-[0-9]{1}:[0-9]{12}:layer/[a-z]+:[0-9]+$) or (^[a-z]+:[0-9]+$)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment