Created
March 26, 2018 08:56
-
-
Save jimsmith/7aa9a99b2ba6372fcab2de00aa16c1e3 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