Go to file
Daniel Mikula c79ed5dbc7 added ssm parameter for duckdns token 2023-05-22 14:34:27 +02:00
setup_scripts added private key encryption 2023-05-22 13:21:02 +02:00
.gitignore added .gitignore 2023-05-17 06:05:03 +02:00
.terraform.lock.hcl added ebs to ec2 2023-05-17 06:56:47 +02:00
README.md added private key encryption 2023-05-22 13:21:02 +02:00
ec2.tf added ssm parameter for duckdns token 2023-05-22 14:34:27 +02:00
provider.tf added .gitignore 2023-05-17 06:05:03 +02:00
variables.tf added private key encryption 2023-05-22 13:21:02 +02:00

README.md

k3s EC2 Terraform Script

Launches EC2 instance, creates private key, and saves it on the machine.

Usage:

terraform apply -var="instance_type=t2.nano" -var="instance_name=k3s-box" -var="instance_ami=ami-0889a44b331db0194" -var="availability_zone=us-east-1a" -var="create_ebs_block_device=false" - var="enable_ingress_http=false" -var="duckdns_domain=<duckdns_domain>" -var="duckdns_token=<duckdns_token>" -var="private_key_password=<your_password>" -auto-approve

Or create a tfvars file.

Defaults of vars are set to the ones provided in "Usage"