Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nikovirtala/cdk-fargate-apigateway-http-api
Example of publishing private AWS Fargate service as Amazon API Gateway HTTP API.
https://github.com/nikovirtala/cdk-fargate-apigateway-http-api
aws-apigateway aws-cdk aws-cloudmap aws-ecs aws-fargate cdk cdk-examples fargate projen vpc-endpoints
Last synced: 10 days ago
JSON representation
Example of publishing private AWS Fargate service as Amazon API Gateway HTTP API.
- Host: GitHub
- URL: https://github.com/nikovirtala/cdk-fargate-apigateway-http-api
- Owner: nikovirtala
- License: mit
- Created: 2021-02-08T14:07:20.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-12-10T00:22:44.000Z (12 days ago)
- Last Synced: 2024-12-10T01:22:19.713Z (12 days ago)
- Topics: aws-apigateway, aws-cdk, aws-cloudmap, aws-ecs, aws-fargate, cdk, cdk-examples, fargate, projen, vpc-endpoints
- Language: TypeScript
- Homepage:
- Size: 2.79 MB
- Stars: 19
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cdk-fargate-apigateway-http-api
This AWS Cloud Development Kit (CDK) stack demonstrates how-to publish an API running on private subnet and AWS Fargate to Amazon API Gateway.
It's also worth noting that this solution utilizes VPC Endpoints instead of NAT Gateways.
Services used in this solution:
- Amazon API Gateway HTTP API
- Amazon API Gateway VPC Link
- Amazon VPC endpoints
- AWS Cloud Map (Service Discovery)
- AWS FargateInspired by: https://aws.amazon.com/blogs/compute/configuring-private-integrations-with-amazon-api-gateway-http-apis/
By `curl`in the url outputted by `cdk deploy`, you should see something like this:
```
% curl https://9s2d6vxtyc.execute-api.eu-west-1.amazonaws.com/
Honk!
___
,-"" ` . < Honk from ip-10-0-0-126.eu-west-1.compute.internal !>
,' _ e )`-._ /
/ ,' `-._<.===-'
/ /
/ ;
_ / ;
(`._ _.-"" ""--..__,' |
<_ `-"" \
<`- :
(__ <__. ;
`-. '-.__. _.' /
\ `-.__,-' _,'
`._ , /__,-'
""._\__,'< <____
| | `----.`.
| | \ `.
; |___ \-``
\ --<
`.`.<
`-'```