GitHunt
KE

ken5scal/secure-brigade-terraform

AWS Terraform files used in Secure Brigade

secure-brigade-terraform

AWS Terraform files used in Secure Brigade

Manual Configuration

TODO

priority

  • vpc flowlog
  • cloudtrail to azure sentinel
  • github action as CI and codepipeline as CD

In General

  • Fix warnings raised by AWS Configs in ap-northeast-1
  • Fix warnings raised by AWS Configs in all regions Everything is aggregated in ap-northeast-1 of master account
  • Split repository based on the domain (like development lifecycle)
    • ex: central-mgt-security, service env, compliance...
  • Makefile
  • Make Modules for common settings (refer to s3, and kms section)

Initial Configs

  • CloudTrail
  • GuardDuty
  • Config
    • The above script misses enabling aws config in some aws accounts and region
  • SecurityHub
  • Trusted Advisor
  • Flow Log <- requires some effort. Flow log itself does not support cross-account logging and s3 storing
  • Inspector

Organization

  • AWS Health
  • Disable IAM User and Role Access to Billing Information in child accounts <- not required because organization handles it automatically
  • Other settings (listed in IAM section)

Cloud Trail

  • Enable CloudTail Insights w/ PR
  • Fix S3 replication settings from cloudtrail bucket in compliance account <- removed from backlog.

Config

  • Aggregate all ConfigHistory/ConfigSnapshot S3 bucket to shared-resources account (set lifecycle)
  • Turn on configuration stream (SNS topic)

Route53

S3

  • Centralize or Replicate config-bucket to one place and set lifecycle
  • Create module to implement various default settings

IAM

KMS

  • digital signature
  • Create module to implement various default settings

CodePipeline

API Gateway

SSM

  • Patch Manager
  • Session Manager
  • Difference between Secret Manager

Response

EC2

Languages

HCL99.3%Open Policy Agent0.7%

Contributors

Created December 14, 2019
Updated November 24, 2021
ken5scal/secure-brigade-terraform | GitHunt