https://github.com/attackiq/audit-s3-bucket-terraform
Terraform code to deploy a basic security mechanism to identify and notify unauthorized activity to AWS S3.
https://github.com/attackiq/audit-s3-bucket-terraform
Last synced: 5 months ago
JSON representation
Terraform code to deploy a basic security mechanism to identify and notify unauthorized activity to AWS S3.
- Host: GitHub
- URL: https://github.com/attackiq/audit-s3-bucket-terraform
- Owner: AttackIQ
- Created: 2020-04-16T09:48:21.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-16T09:59:02.000Z (about 6 years ago)
- Last Synced: 2025-08-11T21:43:04.142Z (11 months ago)
- Language: HCL
- Size: 65.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Audit Unauthorized access to S3 Buckets
This is a terraform code to deploy the necessary infrastructure to identify unauthorized activity to a S3 bucket.

Deployment details can be found here: https://attackiq.com/blog/2020/04/14/defeating-a-cloud-breach-part-3/
Notifications will be send by email using the SNS service. An email subscription to the SNS topic is needed once the TF is deployed.
## Requirements
- Terraform v0.12.18
## Deploy
- Create a ZIP file to deploy the lambda function:
```
# make all
```
- Initialize Terraform
```
# terraform init
```
- Deploy
```
# terraform apply
```
Variables needed:
* monitored_bucket: Bucket name to monitor
* name: Solution name. This value is used when naming resources.