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년 전198회 조회
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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠