-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for collecting deletable OCPs from AWS #481
Conversation
wrapanapi/systems/ec2.py
Outdated
@@ -531,7 +553,7 @@ def id(self) -> str: | |||
This part is used as id in aws cli. | |||
""" | |||
if self.arn: | |||
return self.arn.split(":")[-1] | |||
return self.arn.split(":")[-1].split("/")[-1] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking at the docs here https://docs.aws.amazon.com/quicksight/latest/APIReference/qs-arn-format.html it could be three formats
arn:partition:service:region:account-id:resource-id
arn:partition:service:region:account-id:resource-type/resource-id
arn:partition:service:region:account-id:resource-type:resource-id
it will fail for others ? I think you need to handle that ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved in latest commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good, some minor changes.
/verified |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK, Nice work @oharan2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK with non blocking pyproject change.
/verified |
Main changes:
list_resources
flow to catch and log client error when using ResourceExplorer through an unauthorized client