AWS & PowerShell - Can you run PowerShell for AWS in AWS Lamda or some other service

FikreDeneke
FikreDeneke used Ask the Experts™
on
Can you use AWS Lamda or some other service to run powershell or AWS CLI commands so you don't need a server?

aws ec2 describe-snapshots --filters Name=volume-id,Values=vol-abc123 --query Snapshots[*].{ID:SnapshotId} --output text >>c:\\AWS\snapshots.txt

aws ec2 describe-snapshots --query 'Snapshots[?StartTime >= `2018-01-01`].{id:SnapshotId}'
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Senior Platform Engineer
Commented:
Not powershell commands specifically.  However, those describe-snapshot calls (for example) are available. With Lambda, you can currently choose either Node.js (javascript), Java 8, C#, or Python. Each language has an SDK where you can access the same commands that the AWS CLI provides.
PberSolutions Architect

Commented:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Accept: Phil Phillips (https:#a42430637)

If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

Pber
Experts-Exchange Cleanup Volunteer

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial