Skyscanner / LambdaGuard

AWS Serverless Security
Apache License 2.0
400 stars 69 forks source link

Fix index out of range error on DynamoDB ARN parse #10

Closed ckabalan closed 4 years ago

ckabalan commented 5 years ago

Came across an Improperly formed ARN: arn:aws:dynamodb:::${Table}

While not "valid", is allowed in a IAM Policy. This fix prevents an IndexError: list index out of range error.

adeptex commented 4 years ago

Hi @ckabalan, sorry i forgot to reply to this PR earlier. This problem should be fixed by this: https://github.com/Skyscanner/LambdaGuard/commit/f6b7916d1f5c5379f0f9f3c973c805067784aa65 Thanks very much for submitting a PR :]