You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,7 @@ $ cdk destroy
49
49
|[ecs-service-with-logging](https://github.com/aws-samples/aws-cdk-examples/tree/master/typescript/ecs/ecs-service-with-logging/)| Starting a container fronted by a load balancer on ECS |
50
50
|[fargate-service-with-logging](https://github.com/aws-samples/aws-cdk-examples/tree/master/typescript/ecs/fargate-service-with-logging/)| Starting a container fronted by a load balancer on Fargate |
51
51
|[custom-logical-names](https://github.com/aws-samples/aws-cdk-examples/tree/master/typescript/custom-logical-names/)| Example of how to override logical name allocation |
52
+
|[http-proxy-apigateway](https://github.com/aws-samples/aws-cdk-examples/tree/master/typescript/http-proxy-apigateway/)| Use ApiGateway to set up a http proxy |
> **This is a stable example. It should successfully build out of the box**
8
+
>
9
+
> This examples does is built on Construct Libraries marked "Stable" and does not have any infrastructure prerequisites to build.
10
+
11
+
---
12
+
<!--END STABILITY BANNER-->
13
+
14
+
This example creates Http proxy using API gateway of cdk.
15
+
If you want to parse another region site(your origin is us-east-1 but scrap site origin is ap-north-east-2) then you can use this proxy.
16
+
17
+
> For more information on using Http proxy with apigateway clik [here](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-create-api-as-simple-proxy-for-http.html).
18
+
19
+
## Build
20
+
21
+
To build this app, you need to be in this example's root folder. Then run the following:
22
+
23
+
```bash
24
+
npm install -g aws-cdk
25
+
npm install
26
+
npm run build
27
+
```
28
+
29
+
This will install the necessary CDK, then this example's dependencies, and then build your TypeScript files and your CloudFormation template.
30
+
31
+
## Deploy
32
+
33
+
Run `cdk deploy`. This will deploy / redeploy your Stack to your AWS Account.
34
+
35
+
After the deployment you will see the API's URL, which represents the url you can then use.
36
+
37
+
## Synthesize Cloudformation Template
38
+
39
+
To see the Cloudformation template generated by the CDK, run `cdk synth`, then check the output file in the "cdk.out" directory.
0 commit comments