Code snippets for ephemeral lab environments
- This code leveraged both doppler.com for secrets, and terraform cloud for state and tf variables.
- Clone the repo, and cd into it
- run
doppler setupif you have not already- This assumes you have a Doppler workspace setup with the needed secrets
- run
terraform initin the directory- This assumes you have already setup the
lab_nameanddk_aws_regionvariables and values in Terraform cloud
- This assumes you have already setup the
- Double check your setting for
module "sysdig-cs"inmain.tf - You may want to double check your versions in
versions.tf
You will need to run the commands via Doppler to get the secrets injected. For example:
doppler run --name-transformer tf-var -- terraform plandoppler run --name-transformer tf-var -- terraform applydoppler run --name-transformer tf-var -- terraform destroy
- ensure you edit your cluster info in
eksctl/sysdig-dk-lab-eks-cluster.yamlafter the terraform apply- vpc id
- subnet id
- region - if you are not in us-west-2
- metadata name
- instance sizes
- ensure
spot: trueis set
- Once you are happy with the settings, run
eksctl create cluster -f sysdig-dk-lab-eks-cluster.yaml