-
Notifications
You must be signed in to change notification settings - Fork 866
[Feedback requested] New rule on S3 has VPC endpoint enabled. #130
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
Comments
@dboyd13 following your request. |
Suggesting this version of the Gherkin for the check. Also wanted to check if there. Please confirm if this looks correct. |
The goal is to check that all VPCs have a S3 endpoint. The problem with the Gherkin you posted is:
I'd suggest to comment on the original Gherkin first. |
I'd need one more API call to make this work. I'm planning to do a describe_vpcs() so that I can create a list of VPCs and then compare with describe_vpc_endpoints() Vpc values. |
Good with that |
Small edit to the first Gherkin scenario Code is ready and working as expected. |
Code and Unit tests ready and tested. The code has one minor issue on Current Lint score -- Please advise if I should initiate a PR. |
@bksarthak If you have the code ready, you can start a PR. We will review it. I can help you with the pylint score, you can refer this issue: pylint-dev/pylint#1267 or check this site for inconsistent-return-statements: http://pylint.pycqa.org/en/latest/whatsnew/1.8.html If nothing helps, we can work over it via the PR. |
@jongogogo @bksarthak I would like to add an additional check to ensure at least one Route table is associated with the Amazon S3 endpoint. We can get it easily from the 'RouteTableIds' key in the output of describe_vpc_endpoints() API call. |
I think adding that check doesn't really check anything special apart from seeing the route table is attached or not. Considering the
|
@shikharj05 @bksarthak it is a good idea for a new rule. I would not put it into this one. It creates too much additional checks. |
New rule to verify that the S3 has VPC endpoint enabled.
Please provide comments on the gherkin if any.
DescribeVpcEndpoints API doc
The text was updated successfully, but these errors were encountered: