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.

已提问 5 年前233 查看次数
1 回答
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.

已回答 5 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则