- Newest
- Most votes
- Most comments
Not all services have VPC Endpoints. EventBridge scheduler is one of them. It may come in the future, but no idea if and when.
For now your options are either to remove your function from the VPC (which may not be an option if it needs to access other VPC private resources), create a NAT Gateway that will allow your function to access the internet, and therefore the Scheduler API, or, you could also invoke another Lambda function (there is a VPC endpoint for Lambda invoke) that will not be attached to the VPC and will make the call to the API. You will need to do some cost comparison to identify which is more cost effective for your use case. For example, if you need to call the scheduler API once a day, you do not want to pay for the NAT GW for the entire day.
There is now an easier way to accomplish this. We launched, "Amazon EventBridge and AWS Step Functions announce integration with private APIs" on Dec 1st. This will meet your needs. Jeff Barr covers it in his blog and we just did an AWS OnAir show, including a re:Post Live segment where we cover this question and use case. Check it out!
Relevant content
- asked 3 years ago
