To create an AWS Lambda function from the AWS CLI, you can use the aws lambda create-function command. Here is an example of how you might use this command to create a new Lambda function: This will create a new Lambda function named MyFunction that runs a Python 3.8 runtime and has the specified IAM…
Category: AWS CLI
AWS Lambda S3 Trigger Configuration using AWS CLI : A Step-by-Step Guide
To set up an Amazon S3 trigger for an AWS Lambda function using the AWS CLI, you can use the aws lambda add-permission and aws s3api put-bucket-notification-configuration commands. First, you will need to grant permission for the S3 bucket to invoke the Lambda function using the aws lambda add-permission command: This will grant permission for…
How to create AWS QuickSight DataSource with AWS CLI
Here are the AWS CLI commands to create a QuickSight data source: 1- First, create a JSON file with the input parameters for the create-data-source command. For example, if you want to create a Redshift data source, the JSON file might look like this: 2- Save the JSON file as a variable, such as $data_source_params….