Reference Your API Gateway URL from within Your Code - Serverless URL Trick
If you've wanted to be able to use the URL of your service before you've deployed it then this is the video for you.
Code: https://gist.github.com/SamWSoftware/381eaf441fc6435f1466314b1eedaa72
apiURLBase: { 'Fn::Join': [ '', [ 'https://', { 'Ref': 'ApiGatewayRestApi' }, '.execute-api.${self:provider.region}.amazonaws.com/${self:provider.stage}' ] ] }
It allows you to call other endpoints on your service or pass your URL in the body of requests to other services. This can be really powerful.
Видео Reference Your API Gateway URL from within Your Code - Serverless URL Trick канала Complete Coding
Code: https://gist.github.com/SamWSoftware/381eaf441fc6435f1466314b1eedaa72
apiURLBase: { 'Fn::Join': [ '', [ 'https://', { 'Ref': 'ApiGatewayRestApi' }, '.execute-api.${self:provider.region}.amazonaws.com/${self:provider.stage}' ] ] }
It allows you to call other endpoints on your service or pass your URL in the body of requests to other services. This can be really powerful.
Видео Reference Your API Gateway URL from within Your Code - Serverless URL Trick канала Complete Coding
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
How to create Custom Authorisers in your Serverless AWS ProjectSecuring Your Serverless API With API KeysDynamoDB Partitions - How they work - AWS Service Deep DiveWhat is an API Gateway?Securely Share Images and Files in your S3 Buckets - AWS Signed URLsHow does AWS Lambda scale - Reserve Capacity - AWS Service Deep DiveAWS Lambda Cold Starts Deep Dive - How they workAdding Signup and Login to your React App with AWS AmplifyAdd File Upload to Your React App with Amplify - full tutorialServerless Offline for testing on your local machine. Tutorial with DynamoDBWorking with Data in DynamoDB from React with AWS Amplify - Full tutorialCreate a Serverless Database - DynamoDB with the Serverless FrameworkHow to write Integration Tests for Serverless AWS Endpoints - API Gateway and Lambda Guide with JestHow to build an API with Lambdas and API GatewayCreating an API with ServerlessAWS Lambda Global Variables - The Good the Bad & the Ugly - AWS Service Deep DiveSetting up Amazon Cognito using ServerlessImage Upload API with AWS Lambda and S3 - Serverless TutorialKubernetes Concepts Explained in 9 minutes!REST API concepts and examples