Skip to main content

AWS CDK Construct Library to manage micro apis for Renovo Solutions

Project description

Renovo Solutions Private Lambda Micro REST API (proxy) Infrastructure Library

build

This infrastructure construct library implements a private lambda backed REST API on AWS API Gateway using proxy+.

Features

  • Utilizes an internal Micro API project to provide an api via Lambda (with proxy+) and API Gateway
  • Configures the required VPC endpoint attachment automatically
  • Configures logging for API requests
  • Configures the private gateways policy to restrict access to the VPC endpoint
  • Exports the private DNS name to be used in the app

What this construct does not do

  • Provide the VPC endpoint with private DNS enabled. The user utilizing this construct should create a single VPC endpoint with private DNS enabled and share it across all projects utilizing this consturct.

Private API Gateway traffic flow using VPC Endpoint

API gateways are a managed service that lives outside of our own VPC. Therefore when creating a private gateway this means that in order to access it additional configurations need to occur. Specifically a VPC endpoint must exist for traffic to route to the API Gateway. In addition the Lambda service itself also lives outside our VPC. This can seem a bit complex given that most of our Micro API projects then return to the VPC to route traffic to the database. To help visualize what this looks like here is a diagram of this traffic flow when routing through the api gateway for Micro APIs:

private api traffic flow

The old setup, using public traffic flow

We used to deploy API gateways as public endpoints. For the sake of comparison here is what the old traffic flow would have looked like:

public api traffic flow

References

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file renovosolutions_aws_cdk_renovo_microapi-0.0.236.tar.gz.

File metadata

File hashes

Hashes for renovosolutions_aws_cdk_renovo_microapi-0.0.236.tar.gz
Algorithm Hash digest
SHA256 c58ab299a4ff4b86d3bb7d6d5c022d8db5608878f0853b810c194025a11382ad
MD5 a25f18fd511f039b67dd0a1c9a90c896
BLAKE2b-256 bd065b359509be80f95862a48c8f6d529b2977cb6d763a01f1438ab0bfeeb900

See more details on using hashes here.

File details

Details for the file renovosolutions.aws_cdk_renovo_microapi-0.0.236-py3-none-any.whl.

File metadata

File hashes

Hashes for renovosolutions.aws_cdk_renovo_microapi-0.0.236-py3-none-any.whl
Algorithm Hash digest
SHA256 a8355b739f0697b13729255d7faa57e7cb93b306c8d15b106b9b4a7413cc4328
MD5 7f3b5be58810ec9595d5be45aa258843
BLAKE2b-256 19eaf8200bba029972abb0aee1b3f9e5ae4d61b61f29c7895f9a088bd76eb154

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page