Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cross region support for EC2 images import (#1441)
### Summary This covers an edge case where the EC2 instance exists in one region, but the AMI is from another region . There isn't much documentation available, but I noticed it more on Amazon Linux recommended AMIs for EKS. ### Related issues or links - https://winder.ai/how-to-list-all-amis-for-each-region-in-aws/ - https://docs.aws.amazon.com/eks/latest/userguide/retrieve-ami-id.html - https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html With no multi region support: ![Screenshot 2025-01-16 at 2 08 54 p m](https://github.com/user-attachments/assets/0e58e4d2-e083-4886-ad82-9f4c8add624c) With multi region support ![Screenshot 2025-01-16 at 2 08 43 p m](https://github.com/user-attachments/assets/8a30cb2c-8d3c-41f2-bb83-4c89a6e63bdf) ### Checklist Provide proof that this works (this makes reviews move faster). Please perform one or more of the following: - [x] Update/add unit or integration tests. - [ ] Include a screenshot showing what the graph looked like before and after your changes. - [ ] Include console log trace showing what happened before and after your changes. If you are changing a node or relationship: - [ ] Update the [schema](https://github.com/lyft/cartography/tree/master/docs/root/modules) and [readme](https://github.com/lyft/cartography/blob/master/docs/schema/README.md). If you are implementing a new intel module: - [ ] Use the NodeSchema [data model](https://cartography-cncf.github.io/cartography/dev/writing-intel-modules.html#defining-a-node). --------- Signed-off-by: Alex Chantavy <[email protected]> Signed-off-by: Eryx Paredes <[email protected]> Co-authored-by: Alex Chantavy <[email protected]> Co-authored-by: i_virus <[email protected]>
- Loading branch information