-
-
Save mr-brody/5d39176e76a466350ed93f023ed5881f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AWSTemplateFormatVersion":"2010-09-09", | |
"Description":"This Template creates an Amazon Cloudwatch Alert for Trusted Advisor open ports, protocols, IAM credentials not rotated in 90 days and must be created in us-east-1.", | |
"Parameters":{ | |
"EmailAddress": { | |
"Description": "Email Address for sending SNS notifications for TrustedAdvisor", | |
"Type": "String" | |
} | |
}, | |
"Resources":{ | |
"TASNSTopic": { | |
"Type" : "AWS::SNS::Topic", | |
"Properties" : { | |
"DisplayName" : "TA_CWatch", | |
"TopicName" : "TrustedAdvisorAlert", | |
"Subscription": [ | |
{ | |
"Endpoint": { | |
"Ref": "EmailAddress" | |
}, | |
"Protocol": "email" | |
} | |
] | |
} | |
}, | |
"TAEventsRule": { | |
"Type" : "AWS::Events::Rule", | |
"Properties" : { | |
"Description" : "Rule to log interesting security status from Trusted Advisor into Cloudwatch", | |
"EventPattern" : { | |
"source": [ | |
"aws.trustedadvisor" | |
], | |
"detail-type": [ | |
"Trusted Advisor Check Item Refresh Notification" | |
], | |
"detail": { | |
"status": [ | |
"ERROR" | |
], | |
"check-name": [ | |
"Security Groups - Specific Ports Unrestricted", | |
"Security Groups - Unrestricted Access", | |
"ELB Listener Security", | |
"ELB Security Groups", | |
"Amazon RDS Security Group Access Risk", | |
"IAM Access Key Rotation", | |
"IAM Use", | |
"Amazon S3 Bucket Permissions", | |
"Exposed Access Keys" | |
] | |
} | |
}, | |
"Name" : "TrustedAdvisorAlert", | |
"State" : "ENABLED", | |
"Targets" : [ | |
{ | |
"Arn": { "Ref": "TASNSTopic" }, | |
"Id": "TrustedAdvisorAlert" | |
} | |
] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment