Skip to content

*READY TO USE* Terraform baseline for implementing essential AWS security best practices, including Organizations, SSO, MFA, SCPs, Budget Alarms, CloudTrail, and secure S3 configuration. Automate your AWS account security setup with infrastructure as code.

License

Notifications You must be signed in to change notification settings

Depaa/terraform-aws-security-baseline

Repository files navigation

Terraform AWS Security Baseline

READY TO USE Terraform baseline for implementing essential AWS security best practices, including Organizations, SSO, MFA, SCPs, Budget Alarms, CloudTrail, and secure S3 configuration. Automate your AWS account security setup with infrastructure as code.

Link to The Article

How to Deploy

  1. Run this step:
terraform init

or if you have the S3 bucket for the state:

terraform init -input=false 
    -backend-config="bucket=[BUCKET_NAME]" 
    -backend-config="key=[KEY_PREFIX].tfstate" 
    -backend-config="region=[REGION]"
  1. Planning what is going to happen:
terraform plan -var-file=terraform.tfvars
  1. If everything looks good, deploy:
terraform apply -var-file=terraform.tfvars

Resources

  • AWS Organization
  • (you need to enable SSO manually)
  • AWS Budgets for cost notification
  • SSO user with MFA enabled (by default)
  • SCPs, you can enable them by your own (👀 see README.md)

Tagging Strategy

Starting with the right tagging strategy in mind is perfect:

  • Environment
  • Project
  • Application
  • CostCenter
  • Owner
  • Department
  • Usage (management, scheduled, event-driven, api, etc)
  • Sensitive (yes, no)
  • Compliance
  • IaCTool

About

*READY TO USE* Terraform baseline for implementing essential AWS security best practices, including Organizations, SSO, MFA, SCPs, Budget Alarms, CloudTrail, and secure S3 configuration. Automate your AWS account security setup with infrastructure as code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published