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

File details

Details for the file renovosolutions.aws-cdk-renovo-microapi-0.0.234.tar.gz.

File metadata

File hashes

Hashes for renovosolutions.aws-cdk-renovo-microapi-0.0.234.tar.gz
Algorithm Hash digest
SHA256 011e89e95a548cc932475763869900c65c3d1de20a4fb9c4edccf485024fd827
MD5 0bd627c71e562b7f0cb340738c023d2c
BLAKE2b-256 1607e2dad21b4367f061b179d2be895282dbfce6b05d4b3446683a4406ed90d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for renovosolutions.aws_cdk_renovo_microapi-0.0.234-py3-none-any.whl
Algorithm Hash digest
SHA256 ad287b5490624e45a692e2cebaa69a6d5fe8b565f36232845114d93686f67aed
MD5 457e91f6aeb7e117920c8fb50d6515e3
BLAKE2b-256 0424d7ab62eb4c1087669898bfd2d981d22f713f7434dbe3fab64a660f0d034d

See more details on using hashes here.

Supported by

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