These are the input parameters for this template. All of these parameters must be supplied for this template to be deployed.
Notification Email Address
This address gets subscribed to the notification SNS topic that is created.
The following tags are applied to all resources created by this template.
A few conditions to track if this is being deployed in GovCloud, and if this region supports glacier or not.
This creates an SNS topic which will receive notifications for the various alerts and triggers set up in this template. An initial email address (passed in via parameters above) is set as a subscriber.
This creates an SNS topic which will receive notifications for the various alerts and triggers set up in this template. The lambda-alarm-logs lambda function will then subscribe to this topic, enrich the alarms with log details, and publish a new message to the SNS rSecurityAlarmTopic
Creates an S3 bucket to hold long-term logging data for the account. The first 90 days are stored as S3 standard, then after 90 days the data is transitioned to Glacier if this region supports it, or S3 Infrequent Access if it doesn't.
This is the policy attached to the Logging Bucket. It Enforces the following:
Enables CloudTrail for this account, and logs events to the CloudTrail S3 bucket.
This role allows the CloudTrail service to write CloudWatch Logs events.
Creates a CloudTrail Log group with a retantion of 90 days. This log group is referenced above where we turned on CloudTrail for this account.
Monitor changes to IAM access.
Monitor changes to ACLs.
Send to SNS rSecurityLambdaTopic topic whenever Network ACLs are changed.
Track changes to Security Groups.
Send to SNS rSecurityLambdaTopic topic whenever Security Groups are changed.
Track Root User activity.
Send to SNS rSecurityLambdaTopic topic whenever root user activity is detected.
Track any unauthorized activity.
Send to SNS rSecurityLambdaTopic topic whenever unauthorized activity is detected.
Send to SNS rSecurityLambdaTopic topic whenever IAM Policy changes are detected.
Send to SNS rSecurityLambdaTopic topic whenever new Access Keys are created.
Track whenever Access Keys are created.
Send to SNS rSecurityLambdaTopic topic whenever changes to CloudTrail are detected.
Track any changes to CloudTrail.
Logging & Alerting CloudFormation Deployment
This CloudFormation template will setup and deploy a logging and alerting framework for this account.