From 26c18b3e9a16bf4ded4d3ee179853ec09c8055ed Mon Sep 17 00:00:00 2001 From: Daniel Mikula Date: Mon, 22 May 2023 15:33:48 +0200 Subject: [PATCH] updated readme --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7a5dae0..3406cf8 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,16 @@ 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=" -var="duckdns_token=" -var="private_key_password=" -auto-approve +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=" -var="private_key_password=" -auto-approve ``` Or create a tfvars file. +DuckDNS.org allows 5 domain-entries for free. The token will be stored in SSM and fetched by the Terraform script from there. + +The command to connect via SSH to the newly created EC2 instance: +``` +ssh -i ~/.ssh/your-key.pem ec2-user@ntt-example-01.duckdns.org +``` + Defaults of vars are set to the ones provided in "Usage" \ No newline at end of file