Skip to content

feat(aws): add new check ec2_instance_with_outdated_ami #6910

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

HugoPBrito
Copy link
Member

Context

Amazon EC2 (Elastic Compute Cloud) allows users to launch virtual machines, known as instances, using pre-configured templates called Amazon Machine Images (AMIs). An AMI includes the operating system, application software, and configuration settings required to run an instance.

Over time, some AMIs become deprecated. A deprecated AMI is an image that is no longer recommended for use. While it is still available for launching instances if its ID is known, it does not appear in public searches. Deprecated AMIs may no longer receive security updates, making them a potential risk if used for new instances.

Description

This check identifies EC2 instances running outdated or deprecated AMIs. It retrieves the AMI used by each instance and verifies if it has been deprecated.

Checklist

API

  • Verify if API specs need to be regenerated.
  • Check if version updates are required (e.g., specs, Poetry, etc.).
  • Ensure new entries are added to CHANGELOG.md, if applicable.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@HugoPBrito HugoPBrito requested review from a team as code owners February 12, 2025 18:47
@github-actions github-actions bot added the provider/aws Issues/PRs related with the AWS provider label Feb 12, 2025
Copy link

codecov bot commented Feb 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.67%. Comparing base (738644f) to head (cabed7d).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6910      +/-   ##
==========================================
- Coverage   88.69%   88.67%   -0.02%     
==========================================
  Files        1200     1201       +1     
  Lines       34621    34667      +46     
==========================================
+ Hits        30706    30742      +36     
- Misses       3915     3925      +10     
Flag Coverage Δ
prowler 88.67% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
prowler 88.67% <100.00%> (-0.02%) ⬇️
api ∅ <ø> (∅)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
provider/aws Issues/PRs related with the AWS provider
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant