Skip to content

Initial setup of your AWS environment

By the end of this guide, you'll have a complete AWS environment running on the Golden Path all starting from an empty AWS account.

The guide is structured as 13 step-by-step pages. Each page is self-contained, so you can pause between steps and pick up where you left off.

Before you begin

This guide assumes:

AWS Usage in DIG

It is important that you have read and understood the RFC-0005 Bruk av AWS i Origo (AWS usage in Origo) document before you start setting up your infrastructure. This RFC describes the regulations for protecting user data to avoid the transfer of personal data to 3rd party countries in accordance with GDPR.

Guide overview

Guide Description
Set up GitHub repository for IaC Clickops a GitHub repository
Set up environment Create common configuration
Set up remote state Set up and initialize remote Terraform state
Set up DNS Set up DNS for your environment's subdomain
Set up networking Set up the shared VPC for the environment
Set up load balancing Set up a public load balancer for internet traffic
Set up databases Set up the shared database cluster
Set up GitHub OIDC Let GitHub Actions assume AWS roles via OIDC
Set up application common Set up shared app infrastructure (ECS cluster, ECR)
Set up CI/CD common Install the cicd-common stack for Terraform workflows
Set up Terraform workflows Add workflows for Terraform plan and apply
Set up AWS Backup Schedule daily backups of databases and S3 buckets
Set up Datadog Set up shared Datadog integration (datadog-common)

Next step

Set up GitHub repository for IaC