Skip to content

opszero/template-infra

Repository files navigation

Infra (Template)

GitHub GitHub Issues

opsZero uses Infrastructure as Code to build all infrastructure. The directory structure contains everything needed to run the entire Cloud infrastructure from DNS to IAM to the Cloud. The way different components are used is through different terraform modules.

Structure

  • dns: DNS and Cloudflare Access
  • identity:
    • Setting up
  • monitoring: Monitoring configuration
  • environments: Cloud Kubernetes Clusters, Common Cloud Terraform, Shared Terraform
    • <environment>: Individual environments. e.g prod, dev, staging.
    • shared/<shared>: Shared Terraform modules used by environments. e.g S3 Bucket configuration
    • common/<common>: Common Terraform resources used across environments. e.g ECR

Compliance

To enable the compliance for SOC2, CMMC, HIPAA, ITAR, PCI-DSS please follow the following:

  • AWS module

    • environments/common/compliance/aws-cloudtrail: Setup Cloudtrail.
    • environments/common/complaince/aws-elb: Add monitoring to ELBs.
    • environments/common/compliance/aws-guardduty: Enable the Intrusion Detection System.
  • bin/aws-log-group-retention-update.py --profile <account> --region us-west-2: Update the AWS Retention period to 365 days.

Tools & Setup

brew install kubectl kubernetes-helm awscli terraform azure-cli

Makefile

  • make fmt: Run terraform fmt

Modules

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages