unified naming

terraform
Daniel Mikula 2023-05-22 15:48:59 +02:00
parent 26c18b3e9a
commit 5a86b8fe04
3 changed files with 4 additions and 8 deletions

8
ec2.tf
View File

@ -25,16 +25,16 @@ resource "aws_instance" "k3s_box" {
}
provisioner "file" {
source = "./setup_scripts/duckdns.sh"
destination = "/home/ec2-user/duckdns.sh"
source = "./setup_scripts/install_duckdns.sh"
destination = "/home/ec2-user/install_duckdns.sh"
}
provisioner "remote-exec" {
inline = [
"chmod +x /home/ec2-user/install_crontab.sh",
"/home/ec2-user/install_crontab.sh",
"chmod +x /home/ec2-user/duckdns.sh",
"/home/ec2-user/duckdns.sh ${var.duckdns_domain} ${data.aws_ssm_parameter.duckdns_token.token}"
"chmod +x /home/ec2-user/install_duckdns.sh",
"/home/ec2-user/install_duckdns.sh ${var.duckdns_domain} ${data.aws_ssm_parameter.duckdns_token.token}"
]
}

View File

@ -1,4 +0,0 @@
#! /bin/bash
touch ~/hello.txt
echo "hello you" >> ~/hello.txt