Amplify console build failure FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory error could occur If application's node module requires more memory than the default memory limit of node.js At the writing of this article, Default size of container used by Amplify Console for build is approximately 7 … Continue reading Amplify Console Build fails with FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed – JavaScript heap out of memory
500 Internal Server Error with Mock Integration
With Mock Integration Amazon API Gateway there are 2 common reasons for 500 Internal Server error. Check the mapping template in Integration Request and ensure that you are passing statusCode as an integer to the MOCK Integration endpoint. { "statusCode": <Integer_Status_code> } Note: Make sure that status code is passed as integer not string. Correct … Continue reading 500 Internal Server Error with Mock Integration
How to override the version of default packages including Amplify CLI in Amplify Console ?
Amplify Console provides a feature called Live package updates. The default package build used by Amplify console comes with preinstalled dependencies. If you configure Live Package Updates It will override the version of the pre-installed dependencies including Amplify CLI and specify either a specific version, or always ensure the latest version is installed. Note: This … Continue reading How to override the version of default packages including Amplify CLI in Amplify Console ?
API Gateway : Error when creating Custom Domain Name : The certificate provided must be issued by ACM and not imported
Amazon API Gateway supports certificate-based mutual Transport Layer Security (TLS) authentication . Mutual TLS authentication requires two-way authentication between the client and the server. When using Custom Domain Names for API Gateway and enabling mutual TLS on custom domain name, There is a restriction as mentioned in AWS Documentation To enable mutual TLS, your domain … Continue reading API Gateway : Error when creating Custom Domain Name : The certificate provided must be issued by ACM and not imported
Amazon API Gateway Static IP Address
IP Address ranges provided by AWS is provided as a JSON file here. These address ranges keep on changing. The addresses listed for API_GATEWAY are egress only. For restrict/allow the traffic coming from API Gateway, Based on you are using a Regional or an Edge-Optimized endpoint you can whitelist entire IP address range of EC2 … Continue reading Amazon API Gateway Static IP Address
Amazon API Gateway 504: Execution failed due to a timeout error
As per the documentation, For Rest APIs 29 seconds Integration timeout limit is a hard limit which means it can’t be increased. For HTTP APIs the Integration timeout limit is 30 seconds LAMBDA INTEGRATION Workaround:You can asynchronously Invoke your backend to return a HTTP 202 status code which means that the request has been accepted … Continue reading Amazon API Gateway 504: Execution failed due to a timeout error
API Gateway: Create a REST API using AWS CLI
Let's get started with a brief description of API Gateway. Amazon API Gateway is an AWS service that can be used to create, publish, maintain, secure and monitor for REST and WebSocket APIs worrying about scaling and underlying infrastructure. What can API Gateway access as Back-end ? API Gateway can be integrated with one of … Continue reading API Gateway: Create a REST API using AWS CLI
AWS Lambda : Create your first function
AWS Lambda is one of the compute service provided by AWS. Let's get started by a brief intro and then some hands on lab to create a basic function in Python 3.7 runtime. What is AWS Lambda ? AWS Lambda is a compute service that allows to create a function in one of the supported … Continue reading AWS Lambda : Create your first function