- Install terragrunt. Please see Install Terragrunt for reference.
- You will need key-secret pair to access AWS. Learn how to create or manage these at Managing access keys for IAM users. Please export these variables in terminal session
export AWS_ACCESS_KEY_ID=mykey
export AWS_SECRET_ACCESS_KEY=mysecret
- You will require an S3 bucket to store tf-state. Learn how to create or manage these at Create an Amazon S3 bucket. Please export this variable at
export AWS_TERRAFORM_BACKEND_BUCKET_NAME=mybucket
export AWS_TERRAFORM_BACKEND_BUCKET_REGION=myregion
- If you need to run your cluster in multiple availability zones, then please update below line in
terraform/aws/main.tf
# default, single AZ
eks_nodes_subnet_ids = module.vpc.single_zone_public_subnets_id
# Multiple AZ
eks_nodes_subnet_ids = module.vpc.multi_zone_public_subnets_ids
In order to complete the installation, please run the below steps in the same terminal.
cd terraform/aws
terragrunt init
terragrunt plan
terragrunt apply
- Setup the gcoud CLI. Please see Installing Google Cloud SDK for reference.
- Initialize and Authenticate the gcloud CLI. Please see Initializing Cloud SDK for reference.
gcloud init
gcloud auth application-default login
- Install additional dependencies to authenticate with GKE. Please see Installing the gke-gcloud-auth-plugin for reference.
gcloud components install gke-gcloud-auth-plugin
- Create a project and export it as variable. Please see Creating and Managing Projects for reference.
export GOOGLE_PROJECT_ID=myproject
export GOOGLE_TERRAFORM_BACKEND_BUCKET=mybucket
- Enable the Kubernets Engine API for the created project. Please see Enabling the Kubernetes Engine API for reference.
In order to complete the installation, please run the below steps in the same terminal.
cd terraform/gcp
terragrunt init
terragrunt plan --var-file=vars/cluster_overrides.tfvars
terragrunt apply --var-file=vars/cluster_overrides.tfvars
- Log into your cloud environment in your terminal. Please see Sign in with Azure CLI for reference.
az login
- Create a storage account and export the below variables in your terminal. Please see Create a storage container for reference. Export the below variables in your terminal session
export AZURE_TERRAFORM_BACKEND_RG=myregion
export AZURE_TERRAFORM_BACKEND_STORAGE_ACCOUNT=mystorage
export AZURE_TERRAFORM_BACKEND_CONTAINER=mycontainer
In order to complete the installation, please run the below steps in the same terminal.
cd terraform/azure
terragrunt init
terragrunt plan
terragrunt apply