diff options
author | 2024-12-16 11:45:31 +0100 | |
---|---|---|
committer | 2024-12-16 11:45:31 +0100 | |
commit | a6cb05d1b843254ef1c4109ea82245da5491b111 (patch) | |
tree | 8b1c97d7e83b26509132364a3f5a39ce300725c9 /fdio.infra.terraform/terraform-aws-1n-c6in | |
parent | e59a830c21e699d51d6a95161575d5c9623f1a19 (diff) |
fix(terraform): AWS
Signed-off-by: Peter Mikus <peter.mikus@protonmail.ch>
Change-Id: Ib1c89fb06dd2ad9c34f8b84c07c62806763ea878
Diffstat (limited to 'fdio.infra.terraform/terraform-aws-1n-c6in')
-rw-r--r-- | fdio.infra.terraform/terraform-aws-1n-c6in/variables.tf | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/fdio.infra.terraform/terraform-aws-1n-c6in/variables.tf b/fdio.infra.terraform/terraform-aws-1n-c6in/variables.tf index 2d21734a1f..4af15ed579 100644 --- a/fdio.infra.terraform/terraform-aws-1n-c6in/variables.tf +++ b/fdio.infra.terraform/terraform-aws-1n-c6in/variables.tf @@ -38,7 +38,7 @@ variable "placement_group_strategy" { variable "tg_ami" { description = "AMI to use for the instance." type = string - default = "ami-09bee32179b4bf6bf" + default = "ami-05fc62a89ea9fdae4" } variable "tg_associate_public_ip_address" { @@ -101,14 +101,7 @@ variable "first_run_commands" { description = "List of private IPs to assign to the ENI without regard to order." type = list(string) default = [ - "sudo sed -i 's/^PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config", - "sudo systemctl restart ssh.service", - "sudo useradd --create-home -s /bin/bash provisionuser", - "echo 'provisionuser:Csit1234' | sudo chpasswd", - "echo 'provisionuser ALL = (ALL) NOPASSWD: ALL' | sudo tee -a /etc/sudoers", - "sudo useradd --create-home -s /bin/bash testuser", - "echo 'testuser:Csit1234' | sudo chpasswd", - "echo 'testuser ALL = (ALL) NOPASSWD: ALL' | sudo tee -a /etc/sudoers" + "sudo /sbin/shutdown -P +720" ] } |