- Newest
- Most votes
- Most comments
Hello,
I believe this is the follow-up query for this re:Post question
I understand that your you want to create a cross-account setup in which you have HTTP API, CloudMap in account A and Private REST API in account B. You want to access Private REST API in account B from HTTP API via CloudMap in account A.
Please note that you can access your private APIs through interface VPC endpoints for API Gateway, so the service name should be execute-api
. As mentioned in the above re:Post question you can access the Private API from cross-account using this format https://{rest-api-id}-{vpce-id}.execute-api.{region}.amazonaws.com/{stage}
For additional recommendations and insights related to cross-account setups, I recommend referring to the following articles:
- https://repost.aws/knowledge-center/fargate-service-discovery-cloud-map
- https://docs.aws.amazon.com/whitepapers/latest/best-practices-api-gateway-private-apis-integration/http-api.html#private-integration-cross-account-1
- https://docs.aws.amazon.com/cloud-map/latest/dg/registering-instances.html
- https://docs.aws.amazon.com/cloud-map/latest/dg/tutorial-microservices.html
- https://aws.amazon.com/blogs/architecture/new-application-integration-with-aws-cloud-map-for-service-discovery/
- https://repost.aws/knowledge-center/api-gateway-private-cross-account-vpce
Thank you
Relevant content
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated a year ago
- How do I use an interface VPC endpoint to access an API Gateway private REST API in another account?AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 2 years ago