I am trying to create an AWS Lambda function that creates a file and then uploads it into S3.
The AWS CLI commands would be:
aws ec2 describe-network-interfaces --output table > report.csv
aws s3 cp report.csv s3://testec2lambd
Is there anyway that I can use AWS CLI within my Lambda function?
Alternatively, how do I write it in the function as a python script?