Skip to content

Commit

Permalink
Implemend enable/disable for VPC endpoints.
Browse files Browse the repository at this point in the history
  • Loading branch information
gitwater committed Jan 7, 2022
1 parent f6db843 commit 4f38bf2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/paco/cftemplates/vpcendpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ def __init__(self, stack, paco_ctx):
value=f'{network_config.paco_ref}.vpc.id'
)
for (endpoint_name, endpoint) in self.resource.endpoints.items():
if endpoint.is_enabled() == False:
continue
# Generate a RouteTable Ids
for segment_id in endpoint.segments:
for az_idx in range(1, network_config.availability_zones+1):
Expand Down

0 comments on commit 4f38bf2

Please sign in to comment.