This repo contains infrastructure as code. Currently, contains:
- AWS CDK code for provisioning AWS infra
- Terraform code for Microsoft Entra app registration
-
Make sure to first configure AWS CDK along with any prequisites. Note: configure default region to be 'eu-west-2' for aws cli
-
Make sure to install terraform
-
Install Azure CLI, this is needed for terraform
-
Login with azure-cli:
az login --allow-no-subscriptionsCreate a terraform/terraform.prod.tfvars file with the contents:
HOMEPAGE_URL = <HOMEPAGE_URL>
REDIRECT_URI = <REDIRECT_URL>terraform plan -var-file=terraform.prod.tfvars # Dry-run, see what tf needs to do
terraform apply -var-file=terraform.prod.tfvars # Apply tf script
terraform output client_secret # view microsoft client secret