Skip to content

Commit

Permalink
Merge pull request aws-samples#20 from jschwarzwalder/patch-5
Browse files Browse the repository at this point in the history
Using the exact Key from the NLB output
  • Loading branch information
abaird986 authored Aug 1, 2018
2 parents 701dde8 + d6d5435 commit 62971ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module-4/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ aws cognito-idp create-user-pool-client --user-pool-id REPLACE_ME --client-name
#### Create an API Gateway VPC Link
Next, let's turn our attention to creating a new RESTful API in front of our existing Flask service, so that we can perform request authorization before our NLB receives any requests. We will do this with **Amazon API Gateway**, as described in the module overview. In order for API Gateway to privately integrate with our NLB, we will configure an **API Gateway VPC Link** that enables API Gateway APIs to directly integrate with backend web services that are privately hosted inside a VPC. **Note:** For the purposes of this workshop, we created the NLB to be *internet-facing* so that it could be called directly in earlier modules. Because of this, even though we will be requiring Authorization tokens in our API after this module, our NLB will still actually be open to the public behind the API Gateway API. In a real-world scenario, you should create your NLB to be *internal* from the beginning (or create a new internal load balancer to replace the existing one), knowing that API Gateway would be your strategy for Internet-facing API authorization. But for the sake of time, we'll use the NLB that we've already created that will stay publicly accessible.

Create the VPC Link for our upcoming REST API using the following CLI command (you will need to replace the indicated value with the ARN you saved when the NLB was created in module 2):
Create the VPC Link for our upcoming REST API using the following CLI command (you will need to replace the indicated value with the Load Balancer ARN you saved when the NLB was created in module 2):

```
aws apigateway create-vpc-link --name MysfitsApiVpcLink --target-arns REPLACE_ME_NLB_ARN
Expand Down

0 comments on commit 62971ba

Please sign in to comment.