access all ec2 across region via lambda

0

I have lambda function for auto AWS AMI backup is it possible to execute lambda across the region for take automatic backup of all EC2 running on account.

One lambda function execution for all ec2 across region.

posta 5 anni fa198 visualizzazioni
1 Risposta
0

var ec2 = new aws.EC2();

to connect to another region you can use

var ec2 = new AWS.EC2({apiVersion: '2006-03-01', region: 'us-west-2'});

now you can use the aws-sdk in lambda.

con risposta 5 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande