ryihan / Laravel-Amazone-Kit

Laravel is an open source, model-view-controller (MVC) framework for PHP. This tutorial walks you through the process of generating a Laravel application, deploying it to an AWS Elastic Beanstalk environment, and configuring it to connect to an Amazon Relational Database Service (Amazon RDS) database instance.
MIT License
7 stars 5 forks source link

Part of AWS serverless infrastructure #5

Open ryihan opened 2 years ago

ryihan commented 2 years ago

Together with AWS Lambda, API Gateway forms the app-facing part of the AWS serverless infrastructure.

ryihan commented 2 years ago

For an app to call publicly available AWS services, you can use Lambda to interact with required services and expose Lambda functions through API methods in API Gateway. AWS Lambda runs your code on a highly available computing infrastructure. It performs the necessary execution and administration of computing resources. To enable serverless applications, API Gateway supports streamlined proxy integrations with AWS Lambda and HTTP endpoints.

ryihan commented 2 years ago

229 Issue


 --domain-name api.example.com \
 --api-mapping-key v1/orders \
 --api-id a1b2c3d4 \
 --stage test```

#The following AWS CloudFormation example creates an API mapping.

```MyApiMapping:
 Type: 'AWS::ApiGatewayV2::ApiMapping'
 Properties:
 DomainName: api.example.com.com
 ApiMappingKey: 'orders/v2/items'
 ApiId: !Ref MyApi
 Stage: !Ref MyStage```
ryihan commented 2 years ago

Disabling the default endpoint for an HTTP API aws apigatewayv2 update-api \ --api-id abcdef123 \ --disable-execute-api-endpoint

ryihan commented 2 years ago

aws apigatewayv2 create-deployment \ --api-id abcdef123 \ --stage-name dev The following AWS CLI command creates a deployment


 --api-id abcdef123 \
 --stage-name dev```