From 3353aeb26bd2b5292744a4bdee1a299cc375be35 Mon Sep 17 00:00:00 2001 From: witch Date: Sun, 22 Jun 2025 09:45:51 -0700 Subject: [PATCH] Add wake command for ec2 --- lab-4/README.md | 4 ++++ mise.toml | 10 ++++++++++ .../setup_aws/{use-terraform.sh => authenticate.sh} | 0 3 files changed, 14 insertions(+) create mode 100644 lab-4/README.md rename utilities/setup_aws/{use-terraform.sh => authenticate.sh} (100%) diff --git a/lab-4/README.md b/lab-4/README.md new file mode 100644 index 0000000..a476502 --- /dev/null +++ b/lab-4/README.md @@ -0,0 +1,4 @@ +# Lab 4 + +## End Lab +- [ ] Turn off ec2 \ No newline at end of file diff --git a/mise.toml b/mise.toml index a4cfd0f..168f044 100644 --- a/mise.toml +++ b/mise.toml @@ -20,3 +20,13 @@ run = "./utilities/pdf_make/labs.sh" run = """ ./utilities/setup_aws/use-s3.sh """ + +[tasks.sleep] +run = """ +aws ec2 stop-instances --instance-ids $TF_VAR_EC2_INSTANCE_ID --region us-east-2 +""" + +[tasks.wake] +run = """ +aws ec2 start-instances --instance-ids $TF_VAR_EC2_INSTANCE_ID --region us-east-2 +""" diff --git a/utilities/setup_aws/use-terraform.sh b/utilities/setup_aws/authenticate.sh similarity index 100% rename from utilities/setup_aws/use-terraform.sh rename to utilities/setup_aws/authenticate.sh