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 suport for VPC peering connections per VPC #575

Open
kevincox opened this issue Sep 20, 2022 · 1 comment
Open

add suport for VPC peering connections per VPC #575

kevincox opened this issue Sep 20, 2022 · 1 comment

Comments

@kevincox
Copy link

Feature Request

AWS has a VPC quota for the max active VPC peering connections per VPC (quota code L-7E9ECCDB). It would be great if this could be monitored. Presumably like other per-VPC limits alerts would be based on the maximum value for each region.

Active VPC peering connections per VPC

The maximum number of active VPC peering connections per VPC. This quota can be increased up to a maximum of 125.

@kevincox
Copy link
Author

If I am reading the code correctly this shouldn't be too difficult to implement. It would be similar to the other per-VPC checks and would just require listing the active VPC peering connections.

Similar to this code:

def _find_usage_gateways(self):
"""find usage for Internet Gateways"""
# Internet gateways
gws = self.conn.describe_internet_gateways(
Filters=[{'Name': 'owner-id', 'Values': [self.current_account_id]}]
)
self.limits['Internet gateways']._add_current_usage(
len(gws['InternetGateways']),
aws_type='AWS::EC2::InternetGateway',
)

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

No branches or pull requests

1 participant