Skip to content
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

Merged
merged 5 commits into from
Jun 13, 2024

Conversation

oharan2
Copy link
Contributor

@oharan2 oharan2 commented Jun 2, 2024

Main changes:

  • Updated some features to the EC2Instance class:
    • Set id property and repr func
  • Updated some features to the ResourceExplorerResource class:
    • Set modified date ("LastReportedAt") and
    • Set an EC2 Instance object for a matching type resource
  • Updated list_resources flow to catch and log client error when using ResourceExplorer through an unauthorized client

@@ -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]

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 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved in latest commit

Copy link

@omkarkhatavkar omkarkhatavkar left a 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.

@oharan2
Copy link
Contributor Author

oharan2 commented Jun 11, 2024

/verified

Copy link

@omkarkhatavkar omkarkhatavkar left a 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

Copy link
Contributor

@jyejare jyejare left a 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.

pyproject.toml Outdated Show resolved Hide resolved
wrapanapi/systems/ec2.py Show resolved Hide resolved
@oharan2
Copy link
Contributor Author

oharan2 commented Jun 13, 2024

/verified

@jyejare jyejare merged commit b907507 into RedHatQE:master Jun 13, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants