{"id":22803091,"url":"https://github.com/nikovirtala/cdk-fargate-apigateway-http-api","last_synced_at":"2025-04-19T20:22:02.996Z","repository":{"id":37021136,"uuid":"337096242","full_name":"nikovirtala/cdk-fargate-apigateway-http-api","owner":"nikovirtala","description":"Example of publishing private AWS Fargate service as Amazon API Gateway HTTP API. ","archived":false,"fork":false,"pushed_at":"2025-04-15T00:22:58.000Z","size":3023,"stargazers_count":19,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-15T01:27:41.403Z","etag":null,"topics":["aws-apigateway","aws-cdk","aws-cloudmap","aws-ecs","aws-fargate","cdk","cdk-examples","fargate","projen","vpc-endpoints"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nikovirtala.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-02-08T14:07:20.000Z","updated_at":"2025-04-15T00:23:01.000Z","dependencies_parsed_at":"2024-02-09T01:45:28.691Z","dependency_job_id":"c3d78231-d2bd-451a-bc80-3c8669fa1792","html_url":"https://github.com/nikovirtala/cdk-fargate-apigateway-http-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikovirtala%2Fcdk-fargate-apigateway-http-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikovirtala%2Fcdk-fargate-apigateway-http-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikovirtala%2Fcdk-fargate-apigateway-http-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikovirtala%2Fcdk-fargate-apigateway-http-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikovirtala","download_url":"https://codeload.github.com/nikovirtala/cdk-fargate-apigateway-http-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249792497,"owners_count":21326355,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws-apigateway","aws-cdk","aws-cloudmap","aws-ecs","aws-fargate","cdk","cdk-examples","fargate","projen","vpc-endpoints"],"created_at":"2024-12-12T09:08:55.729Z","updated_at":"2025-04-19T20:22:02.976Z","avatar_url":"https://github.com/nikovirtala.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cdk-fargate-apigateway-http-api\n\nThis AWS Cloud Development Kit (CDK) stack demonstrates how-to publish an API running on private subnet and AWS Fargate to Amazon API Gateway.\n\nIt's also worth noting that this solution utilizes VPC Endpoints instead of NAT Gateways.\n\nServices used in this solution:\n\n- Amazon API Gateway HTTP API\n- Amazon API Gateway VPC Link\n- Amazon VPC endpoints\n- AWS Cloud Map (Service Discovery)\n- AWS Fargate\n\nInspired by: https://aws.amazon.com/blogs/compute/configuring-private-integrations-with-amazon-api-gateway-http-apis/\n\nBy `curl`in the url outputted by `cdk deploy`, you should see something like this:\n\n```\n% curl https://9s2d6vxtyc.execute-api.eu-west-1.amazonaws.com/\n\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\u003chead\u003e\n  \u003cmeta charset=\"UTF-8\"\u003e\n  \u003ctitle\u003eHonk!\u003c/title\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n\u003cpre\u003e\n                                   ___\n                               ,-\"\"   ` .     \u003c Honk from ip-10-0-0-126.eu-west-1.compute.internal !\u003e\n                             ,'  _   e )`-._ /\n                            /  ,' `-._\u003c.===-'\n                           /  /\n                          /  ;\n              _          /   ;\n (`._    _.-\"\" \"\"--..__,'    |\n \u003c_  `-\"\"                     \\\n  \u003c`-                          :\n   (__   \u003c__.                  ;\n     `-.   '-.__.      _.'    /\n        \\      `-.__,-'    _,'\n         `._    ,    /__,-'\n            \"\"._\\__,'\u003c \u003c____\n                 | |  `----.`.\n                 | |        \\ `.\n                 ; |___      \\-``\n                 \\   --\u003c\n                  `.`.\u003c\n                    `-'\n\n\u003c/pre\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikovirtala%2Fcdk-fargate-apigateway-http-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikovirtala%2Fcdk-fargate-apigateway-http-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikovirtala%2Fcdk-fargate-apigateway-http-api/lists"}