Play with the AmazonServiceException (and Subclasses) response in Api Gateway integration response

AmazonServiceException (and Subclasses) AmazonServiceException is the most common exception that you’ll experience when using the AWS SDK for Java. This exception represents an error response from an AWS service. For example, if you try to terminate an Amazon EC2 instance that doesn’t exist, EC2 will return an error response and all the details of that error … Lire la suite Play with the AmazonServiceException (and Subclasses) response in Api Gateway integration response

Évaluez ceci :

How to drop all connexion to your database PostgreSQL

How to see Amazon RDS (postgres) connection limit? select * from pg_settings where name=’max_connections’; for t2.micro for example we have 87 max connexion for large.micro 522 i think xD you have always try t close hibernate session if yu use it to make connexion to databases in order to do some (insertions , reading …)   … Lire la suite How to drop all connexion to your database PostgreSQL

Évaluez ceci :

How to give API gateway permission to invoke lambda function through api or cli?

Source Quora forum How to give API gateway permission to invoke lambda function through api or cli? from aws You must grant API Gateway access permission to the IAM user who will perform the tasks. The IAM user must have full access to work with Lambda. For this, you can use or customize the managed … Lire la suite How to give API gateway permission to invoke lambda function through api or cli?

Évaluez ceci :

How to create Api Gateway with terraform

Terraform gives us possibility to write these ressources for our api_gateway : aws_api_gateway_account aws_api_gateway_api_key aws_api_gateway_authorizer aws_api_gateway_base_path_mapping aws_api_gateway_client_certificate aws_api_gateway_deployment aws_api_gateway_documentation_part aws_api_gateway_documentation_version aws_api_gateway_domain_name aws_api_gateway_gateway_response aws_api_gateway_integration  ==> to specify  proxy or not , wich lambda mock endpoint.. aws_api_gateway_integration_response  ====>to specify  proxy or not , wich lambda mock endpoint.. aws_api_gateway_method  : POST GET aws_api_gateway_method_response  ====> aws_api_gateway_method_settings aws_api_gateway_model aws_api_gateway_resource  =====> … Lire la suite How to create Api Gateway with terraform

Évaluez ceci :

Terraform EOF escaped format

This piece of code creates an sqs ressource if we don’t use the EOf we should then give the json payloads with the escaped formats like this resource « aws_sqs_queue » « terraform_queue » { name = « terraform-example-queue » delay_seconds = 90 max_message_size = 2048 message_retention_seconds = 86400 receive_wait_time_seconds = 10 #redrive_policy = « {\ »deadLetterTargetArn\ »:\ »${aws_sqs_queue.terraform_queue_deadletter.arn}\ »,\ »maxReceiveCount\ »:4} » policy= « {\ »Version\ »:\ »2012-10-17\ »,\ »Statement\ »:[{\ »Action\ »:[\ »sqs:*\ »],\ »Effect\ »:\ »Allow\ »,\ »Resource\ »:\ »*\ »}]} » tags { Environment = … Lire la suite Terraform EOF escaped format

Évaluez ceci :

Aws lambda list-functions Unknown output type:

Done : main.tf contains script and iam type for your lambda terraform plan to show the changes terraform apply to apply the plan aws lambda list-functions  : to verify if lambda is created or not console shows : Unknown output type: Problem After creating your terraform script to deploy a lambda when you configure your aws … Lire la suite Aws lambda list-functions Unknown output type:

Évaluez ceci :

Why we use embedded text editor like kate gedit or embedded terminal text edit

In linux environnement or windows when we are working with cmd bash Pshell  and we are faced to write edit script each time … the use of notepad++ blocnot sublime may be a headach task each time swiping between terminal edit save , return to cmd ( unles we have 2 or 3 screen to … Lire la suite Why we use embedded text editor like kate gedit or embedded terminal text edit

Évaluez ceci :

What is PuTTY?

PuTTY is a client program for the SSH, Telnet and Rlogin network protocols. These protocols are all used to run a remote session on a computer, over a network. PuTTY implements the client end of that session: the end at which the session is displayed, rather than the end at which it runs. In really … Lire la suite What is PuTTY?

Évaluez ceci :

The doom of callbacks || deadly diamond of death

Cette expression  a été inventé pour qualifier un problème assez récurrent dans le monde du Javascript touchant traitant l'(a) synchronicité   suite à l’imbrication successives des appels  en  JavaScript.Utiliser des callbacksL lorsque l’on traite des problèmes asynchrones est assez courant afin de différer l’exécution d’instructions du coup on aura de fortes chance poru avoir des problèmes … Lire la suite The doom of callbacks || deadly diamond of death

Évaluez ceci :