From a6cb05d1b843254ef1c4109ea82245da5491b111 Mon Sep 17 00:00:00 2001 From: Peter Mikus Date: Mon, 16 Dec 2024 11:45:31 +0100 Subject: fix(terraform): AWS Signed-off-by: Peter Mikus Change-Id: Ib1c89fb06dd2ad9c34f8b84c07c62806763ea878 --- fdio.infra.terraform/terraform-aws-1n-c6in/variables.tf | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'fdio.infra.terraform/terraform-aws-1n-c6in') 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" ] } -- cgit