Category

CloudFormation

Setting Up an S3 Trigger for an AWS Lambda Function in the AWS Clouformation

To set up an AWS Lambda function, an Amazon S3 bucket, and an S3 trigger for the function using AWS CloudFormation, you can use the AWS::Lambda::Function, AWS::S3::Bucket, and AWS::Lambda::EventSourceMapping resources. Here is an example of how you might use these resources in a CloudFormation template:

Setting up an AWS Lambda function with an IAM role using AWS CloudFormation

To set up an AWS Lambda function using AWS CloudFormation, with an IAM role, you can use the AWS::IAM::Role and AWS::Lambda::Function resources. Here is an example of how you might use these resources in a CloudFormation template: This will create an IAM role (MyIAMRole) with a policy that allows the Lambda function to list the objects in the my-bucket S3…

How to create AWS QuickSight Data Source with AWS CloudFormation

Here is an example CloudFormation template for creating a QuickSight data source with a Redshift input parameter: This template defines a resource of type AWS::QuickSight::DataSource with the following properties: To create a QuickSight data source with this template, you can use the aws cloudformation create-stack command and specify the template file as the input. You will also need to provide…