Skip to content

Commit

Permalink
Merge pull request #595 from alexjfisher/issue594
Browse files Browse the repository at this point in the history
Fix finding Gateway VPC Endpoints by id
  • Loading branch information
k1LoW authored Jan 22, 2025
2 parents 8a14918 + ad3ea05 commit e6815c7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/awspec/helper/finder/vpc_endpoints.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ module Awspec::Helper
module Finder
module VpcEndpoints
def find_vpc_endpoint(id)
res = ec2_client.describe_vpc_endpoints({
filters: [{ name: 'vpc-endpoint-id', values: [id] }]
})
res = ec2_client.describe_vpc_endpoints({ vpc_endpoint_ids: [id] })

ret = res.vpc_endpoints.select do |vpce|
vpce.vpc_endpoint_id == id
Expand Down

0 comments on commit e6815c7

Please sign in to comment.