Skip to content

Commit e6815c7

Browse files
authored
Merge pull request #595 from alexjfisher/issue594
Fix finding Gateway VPC Endpoints by id
2 parents 8a14918 + ad3ea05 commit e6815c7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/awspec/helper/finder/vpc_endpoints.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ module Awspec::Helper
44
module Finder
55
module VpcEndpoints
66
def find_vpc_endpoint(id)
7-
res = ec2_client.describe_vpc_endpoints({
8-
filters: [{ name: 'vpc-endpoint-id', values: [id] }]
9-
})
7+
res = ec2_client.describe_vpc_endpoints({ vpc_endpoint_ids: [id] })
108

119
ret = res.vpc_endpoints.select do |vpce|
1210
vpce.vpc_endpoint_id == id

0 commit comments

Comments
 (0)