Skip to content

Instantly share code, notes, and snippets.

@JohnPreston
Last active March 23, 2019 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohnPreston/4fb5cf7c54e421c903cdc2141012c655 to your computer and use it in GitHub Desktop.
Save JohnPreston/4fb5cf7c54e421c903cdc2141012c655 to your computer and use it in GitHub Desktop.
Useful python re regexp for AWS
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