-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
feat(AWS): Lightsail new service and checks #3919
feat(AWS): Lightsail new service and checks #3919
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3919 +/- ##
==========================================
+ Coverage 86.47% 86.54% +0.06%
==========================================
Files 771 777 +6
Lines 23971 24139 +168
==========================================
+ Hits 20728 20890 +162
- Misses 3243 3249 +6 ☔ View full report in Codecov by Sentry. |
the API calls are mocked
use dicts instead lists and use threads to audit resources
the addition of this new check delete the others two related with public access
): | ||
report.status = "PASS" | ||
report.status_extended = ( | ||
f"Instance '{instance.name}' has no public access" |
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.
f"Instance '{instance.name}' has no public access" | |
f"Instance '{instance.name}' is not publicly exposed." |
report.resource_arn = arn_instance | ||
report.resource_tags = instance.tags | ||
report.status = "FAIL" | ||
report.status_extended = f"Instance '{instance.name}' has public access" |
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.
Can you put the ports that are opened?
report.status = "FAIL" | ||
report.status_extended = f"Instance '{instance.name}' has public access" | ||
if instance.public_ip == "" and not any( | ||
port.access_type == "public" for port in instance.ports |
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.
I cannot see the attribute access_type
in the Port class
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.
if static_ip.is_attached: | ||
report.status = "PASS" | ||
report.status_extended = ( | ||
f"Static IP '{static_ip.name}' is associated with any instance." |
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.
Can you put the instance that is attached to?
Context
Include new AWS service
Lightsail
with checks:Description
This PR add new services, checks and respective unit tests.
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.