Amazon Web Services Client ID Regular Expression

A regular expression to match an Amazon Web Services (AWS) Client ID, which is a unique identifier for an AWS accountStandardization.

/(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}/

Matches:

  • AKIA1234567891011123
  • AIDA1234ABCDEFGHIJKL
  • AROA123456ABCDEFGHIJ

Non-matches:

  • akia1234567891011123
  • AKIA123456