Amazon API Gateway Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 60: Line 60:
If a network load balancer needs to be created, this is the procedure: {{Internal|AWS_Elastic_Load_Balancing_Operations#Create_a_Network_Load_Balancer|Create a Network Load Balancer}}
If a network load balancer needs to be created, this is the procedure: {{Internal|AWS_Elastic_Load_Balancing_Operations#Create_a_Network_Load_Balancer|Create a Network Load Balancer}}


{{Note|If the network load balancer is "internet-facing", the VPC Link is not necessary, as the URLs exposes by the load balancer can be accessed directly.}}
{{Note|If the network load balancer is [[AWS_Elastic_Load_Balancing_Concepts#Internet-Facing|internet-facing]], the VPC Link is not necessary, as the URLs exposes by the load balancer can be accessed directly.}}


Create.
Create.


<font color=darkgray>Grant permissions to create VPC link: https://docs.aws.amazon.com/apigateway/latest/developerguide/grant-permissions-to-create-vpclink.html</font>
<font color=darkgray>Grant permissions to create VPC link: https://docs.aws.amazon.com/apigateway/latest/developerguide/grant-permissions-to-create-vpclink.html</font>

Revision as of 23:04, 11 February 2019

Internal

Interacting with Amazon API Gateway

Amazon API Gateway Console

https://console.aws.amazon.com/apigateway

AWS CLI

Sending REST API Invocations

Using AWS SDK

API Inspection

Resources

API Gateway Console -> APIs -> <API Name> -> Resources. The "Resources" pane shows the structure of the API as a tree of nodes.

Aslo:

Resources

Methods

API Gateway Console -> APIs -> <API Name> -> Resources -> Select a Resource node -> API methods defined on each resource are the leafs of the tree.

API Creation

With Amazon API Gateway Console: Create API.

Examples:

API Deployment

An API deployment happens in a stage.

API Gateway Console -> APIs -> <API Name> -> Actions -> Deploy API. This is where an existing or a new stage is specified.

Stage Manipulation

Stage Editor: API Gateway Console -> APIs -> <API Name> -> Stages -> <stage name>

API Testing

Create a VPC Link

Amazon API Gateway -> VPC Links -> Create:

Add VPC Link

Name: playground

Description: Access to the playground cluster and ECS services.

Target NLB: playground-nlb. The previously created NLB should be accessible in the drop-down box.

If a network load balancer needs to be created, this is the procedure:

Create a Network Load Balancer

If the network load balancer is internet-facing, the VPC Link is not necessary, as the URLs exposes by the load balancer can be accessed directly.

Create.

Grant permissions to create VPC link: https://docs.aws.amazon.com/apigateway/latest/developerguide/grant-permissions-to-create-vpclink.html