unified naming
parent
26c18b3e9a
commit
5a86b8fe04
8
ec2.tf
8
ec2.tf
|
|
@ -25,16 +25,16 @@ resource "aws_instance" "k3s_box" {
|
||||||
}
|
}
|
||||||
|
|
||||||
provisioner "file" {
|
provisioner "file" {
|
||||||
source = "./setup_scripts/duckdns.sh"
|
source = "./setup_scripts/install_duckdns.sh"
|
||||||
destination = "/home/ec2-user/duckdns.sh"
|
destination = "/home/ec2-user/install_duckdns.sh"
|
||||||
}
|
}
|
||||||
|
|
||||||
provisioner "remote-exec" {
|
provisioner "remote-exec" {
|
||||||
inline = [
|
inline = [
|
||||||
"chmod +x /home/ec2-user/install_crontab.sh",
|
"chmod +x /home/ec2-user/install_crontab.sh",
|
||||||
"/home/ec2-user/install_crontab.sh",
|
"/home/ec2-user/install_crontab.sh",
|
||||||
"chmod +x /home/ec2-user/duckdns.sh",
|
"chmod +x /home/ec2-user/install_duckdns.sh",
|
||||||
"/home/ec2-user/duckdns.sh ${var.duckdns_domain} ${data.aws_ssm_parameter.duckdns_token.token}"
|
"/home/ec2-user/install_duckdns.sh ${var.duckdns_domain} ${data.aws_ssm_parameter.duckdns_token.token}"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
#! /bin/bash
|
|
||||||
|
|
||||||
touch ~/hello.txt
|
|
||||||
echo "hello you" >> ~/hello.txt
|
|
||||||
Loading…
Reference in New Issue