Skip to content

Latest commit

 

History

History
82 lines (44 loc) · 2.42 KB

doc-module-12.md

File metadata and controls

82 lines (44 loc) · 2.42 KB

Module-12 API Gateway

1. API G/W for private endpiont

1.1 To create a network load balancer for private integration using the API Gateway console

1. Sign in to the Amazon EC2 console at https://console.aws.amazon.com/ec2/ and choose a region; for example, us-east-1, on the navigation bar. 
2. Set up a web server on an Amazon EC2 instance.(use a linux dev in us-east-1 or ap-southeast-1)
3. Configure Network Load Balancer with specify target group. (create it as "internal" to hide nlb endpoint)
https://docs.aws.amazon.com/elasticloadbalancing/latest/network/network-load-balancer-getting-started.html

4. Must register your instance in target goup created in above step.

target

5. To create an API with private integration using the API Gateway console

refer : https://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started-with-private-integration.html

target

6. Create a GET method with VPC link integration

target

1.2 Create API resource and proxy+

1.3 Test a API

curl <API invoke URL>
curl '<API invoke URL>/workshop/users/all'

2. API G/W Custom Authorizer (optional)

openid provider: https://docs.aws.amazon.com/cognito/latest/developerguide/open-id.html


3. API G/W cognito user pools.


4. Morning Session :

4.1 S3 access control

  1. Create presignedURL : https://docs.aws.amazon.com/AmazonS3/latest/dev/ShareObjectPreSignedURLJavaSDK.html

  2. Overview of access control of S3 : https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-overview.html

  3. Example of access control : https://docs.aws.amazon.com/AmazonS3/latest/dev/example-walkthroughs-managing-access.html

  1. Install EB CLI : https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install.html

4.3 StepFunction

module-06

4.4. CI/CD