These are the input parameters for this template. All of these parameters must be supplied for this template to be deployed.
The S3 bucket name where the Lambda functions lives. Just the bucket name, not the sub folder, that is below
Default: kfs-prod-cloudformation-deployment
S3 sub folder path to the zip file containing the code.
Tagging information
These are all of the AWS resources/services needed by this template
This Lambda function will receive an SNS event and parse out the message. Then it will format an email and send it to whoever we want Fixes having to add multiple emails to SNS manually
Be sure to update the handler with the correct file name and function name!
S3ObjectVersion: "5LB6Ufz5qI3F60TlbwYxh29ibGlCkAt0"
This 'resource' calls a foundation Lambda function to simply sleep for 30 seconds. This ensures that the LambdaExecutionRole has finished fully being created so that we can then create the lambda function itself.
Create a CloudWatch Log Group for this Lambda function to log to. This allows us to set the retention timeframe.
This is the IAM role that will be used by Lambda when trying to execute this function. Anything the lambda function needs to do with AWS needs to be allowed in here.
Let this Lambda fn create a log group if needed
Let this Lambda fn write logs to its own group
Let this Lambda send email through SES
This allows SNS to invoke this lambda function
This creates a subscription on the KFS SNS Topic.
This creates a subscription on the Rice SNS Topic.
SNS Topic for the KFS load balancer.
SNS Topic for the Rice load balancer.
This creates a subscription on the kfs and rice prd topics for this Lambda function.
Output values that can be viewed from the AWS CloudFormation console.
KFS Environment CloudFormation Deployment
This CloudFormation template is for external KFS resources.
NOTE: This should be used for resources that do not need to be re-deployed often. As you have to destroy any stack that uses values from this first before you can re-deploy it. Currently it only is for: SNS Subscription and Topics for unhealthy counts on ELB NOTE: The python code for the SNS lambda function is stored in S3 kfs-prod-cloudformation-deployment