Comments (4)
@JoostSaanen
Each alarm has a corresponding metric filter pattern associated, this pattern for S3BucketPolicyChanges for example.
Relevant CloudTrail logs can be retrieved by querying the above filter pattern to the CloudWatch Log Group. There are two ways to get this done from AWS Mamagement Console.
- Open CloudWatch Metrics then use "View logs" to apply the corresponding filter pattern to CloudWatch Logs. To get from metrics to logs section in the AWS doc describes in more detail.
- Open CloudWatch Log Group then directly type the filter pattern. See here.
Hope it would help, please let me know if you have other questions! :)
from terraform-aws-secure-baseline.
@nozaq Thanks for your time for answering my question!
I was thinking of a way to integrate the relevant Cloudtrail logs into the message of the post to the topic. I have an integration with SNS and Slack so I am able to see all alarms in Slack. How it works now, it's a bit of a hassle to quickly find the cause of an cloudwatch alarm. Would be cool if the cloudtrail info is already included in the Slack message. Any thoughts on that?
from terraform-aws-secure-baseline.
@JoostSaanen
Ah, now I got your point! I agree it would be beneficial if we could include actual log records in alarm messages 👍
CloudWatch Alarms itself does not send such information when it publishes a message to the SNS topic, so we need some intermediate lambda function to collect log records before sending messages.
It seems that this repo is very much relevant to this idea.
It is possible to implement the above function in this module though, some people may not want to expose actual log contents in alarm messages.
Given that, I'm wondering if this could be provided as a separated terraform module... 🤔
from terraform-aws-secure-baseline.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
from terraform-aws-secure-baseline.
Related Issues (20)
- Upgrade to 1.0 guide should import access_log bucket resource, too HOT 1
- Policy errors during terraform apply of partially enabled baseline HOT 5
- S3 bucket - Terraform AWS Provider 4.0
- Make Audit Bucket Glacier Lifecycle Configuration Optional HOT 3
- GuardDuty: creation of invite accepter for master account? HOT 1
- data.aws_subnets.default.ids known only after apply HOT 3
- Example links on https://registry.terraform.io/modules/nozaq/secure-baseline/aws/2.0.0 are dead HOT 1
- Log delivery for notification messages sent to a topic
- Make audit log & content bucket name fully customizable
- Support for adding Security Hub member accounts via Organizations instead of the Manual process?
- Upgrade Security Hub CIS to v1.4.0 HOT 1
- Issue creating CloudTrail HOT 2
- Alarm baseline HOT 4
- AWS Control Tower Support
- Enable Object Lock for CloudTrail S3 Buckets
- Versioning and MFA Delete is not available for S3 buckets.
- Enable `NIST Special Publication 800-53 Revision 5`
- "The bucket does not allow ACLs" HOT 1
- Allow CloudTrail encryption with SSE-S3
- Setting '*_key_prefix' variables to empty string results in S3 paths containing pointless duplicit slash "/"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-aws-secure-baseline.