AWS Infrastructure for CKAD
- Add a
terraform.tfvars
to project root. Below is an example:
profile = "ckad-account"
region = "eu-west-1"
lab_solution_url = "https://training.linuxfoundation.org/cm/LFD259/LFD259_V2022-11-23_SOLUTIONS.tar.xz"
lab_solution_username = "???????"
lab_solution_password = "???????"
enable_registry = true
aws ec2 create-key-pair \
--key-name ckad \
--key-type rsa \
--key-format pem \
--query "KeyMaterial" \
--output text > ~/.ssh/ckad.pem
terraform init
terraform validate
terraform plan -input=false -var-file='./config/dev.tfvars'
terraform apply -auto-approve -var-file='./config/dev.tfvars'
terraform destroy -auto-approve -var-file='./config/dev.tfvars'
rm -rf .terraform && rm terraform.tfstate && rm .terraform.lock.hcl