Radically Digital Wiki - Infrastructure
Radically Digitals IaC for wiki.js - our internal knowledge base.
Required dependencies are found in .tool-versions
and read by asdf.
### FIRST RUN
# Add required gcloud components
sh ./scripts/setup-gcp-cloud-components.sh
# Add system dependencies
asdf plugin add gcloud https://github.com/jthegedus/asdf-gcloud
asdf plugin add terraform https://github.com/asdf-community/asdf-hashicorp.git
asdf plugin add terragrunt https://github.com/ohmer/asdf-terragrunt.git
# Install as needed based on .tool-versions
asdf install
# Copy the .env.example file and fill out the values in the .env
cp .env.example .env
# Login to GCP
gcloud auth login --no-launch-browser
# Login to GCP SDK
gcloud auth application-default login --no-launch-browser
### END FIRST RUN
# Setup local shell
. ./scripts/export-env.sh
# To Apply/Plan all
cd <environment>
# Init/Plan/Apply
# Note first apply may fail due to API's being enabled
terragrunt [init|plan|apply]
sh ./scripts/image-exchange.sh