PokaInc / arnparse

Parse ARNs using Python
MIT License
36 stars 6 forks source link

Fails to parse EBS volume ARN #8

Closed schosterbarak closed 4 years ago

schosterbarak commented 4 years ago

Value like: "arn:aws:us-west-2:XXX:volume/YYY" Replace XXX with account-id ad YYY with volume-id throws

[ERROR] IndexError: list index out of range
  File "/var/task/arnparse/arnparse.py", line 30, in arnparse
    resource = elements[5]
schosterbarak commented 4 years ago

Suggested fix: https://github.com/PokaInc/arnparse/pull/9 @spg would you mind taking a look?

laurrentt commented 4 years ago

@schosterbarak I saw that you've closed the issue. Do you mind closing the Pull Request as well? Thank you 🙂