You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This solution demonstrates how users can securely invoke a private REST API gateway with a custom domain from Step function workflow. In this architecture, a state machine uses the arn:aws:states:::http:invoke state using EventBridge Connection to invoke the Private API endpoint.
Using EventBridge connection we can now create connections to private APIs, to access resources in VPCs. This setup ensures that the API remains inaccessible from the public internet while still allowing invocations from AWS resources securely.
The solution leverages AWS Serverless Application Model (SAM) to streamline deployment and configuration of these resources, making it easy to implement this secure, scalable solution.
The Step functions allows invoking the Private REST API Gateway using the EventBridge connections and can be used with both Standard and Express workflows.
Description
This solution demonstrates how users can securely invoke a private REST API gateway with a custom domain from Step function workflow. In this architecture, a state machine uses the arn:aws:states:::http:invoke state using EventBridge Connection to invoke the Private API endpoint.
Using EventBridge connection we can now create connections to private APIs, to access resources in VPCs. This setup ensures that the API remains inaccessible from the public internet while still allowing invocations from AWS resources securely.
The solution leverages AWS Serverless Application Model (SAM) to streamline deployment and configuration of these resources, making it easy to implement this secure, scalable solution.
language
English
runtime
N/A
Level
300
Type
Examples
Use case
Interactive workload
Primary image
https://github.com/aws-samples/aws-invoke-private-apigateway-step-function/blob/main/image/architecture.png
IaC framework
AWS SAM
AWS Serverless services used
Description headline
The Step functions allows invoking the Private REST API Gateway using the EventBridge connections and can be used with both Standard and Express workflows.
Repo URL
https://github.com/aws-samples/aws-invoke-private-apigateway-step-function/tree/main
Additional resources
Whats new AWS Blog - https://aws.amazon.com/about-aws/whats-new/2024/12/amazon-eventbridge-step-functions-integration-private-apis/
Securely share AWS resources across VPC and account boundaries with PrivateLink, VPC Lattice, EventBridge, and Step Functions - https://aws.amazon.com/blogs/aws/securely-share-aws-resources-across-vpc-and-account-boundaries-with-privatelink-vpc-lattice-eventbridge-and-step-functions/
Call HTTPS APIs in Step Functions workflows - https://docs.aws.amazon.com/step-functions/latest/dg/call-https-apis.html
Custom domain names for private APIs in API Gateway - https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-private-custom-domains.html
Amazon VPC Lattice - https://docs.aws.amazon.com/vpc-lattice/latest/ug/what-is-vpc-lattice.html
Author Name
Sahil Kapoor
Author Image URL
https://avatars.githubusercontent.com/u/190598271?v=4
Author Bio
I am a Cloud Support Engineer at AWS
Author Twitter handle
No response
Author LinkedIn URL
https://www.linkedin.com/in/sahil-kapoor-503391a7/
leave
Raising this solution as a repo as suggested here
The text was updated successfully, but these errors were encountered: