feat(infra): Fix AWS terraform 87/41987/1
authorPeter Mikus <[email protected]>
Tue, 10 Dec 2024 13:48:00 +0000 (14:48 +0100)
committerPeter Mikus <[email protected]>
Tue, 10 Dec 2024 13:48:00 +0000 (14:48 +0100)
Signed-off-by: Peter Mikus <[email protected]>
Change-Id: Ie903eb01ee7d014e3c6655e98f3d15ef9dd909f8

fdio.infra.terraform/terraform-aws-1n-aws-c5n/variables.tf
fdio.infra.terraform/terraform-aws-1n-c6in/variables.tf
fdio.infra.terraform/terraform-aws-2n-aws-c5n/variables.tf
fdio.infra.terraform/terraform-aws-2n-c6in/variables.tf
fdio.infra.terraform/terraform-aws-2n-c7gn/variables.tf

index f65366f..bf27f03 100644 (file)
@@ -101,7 +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/#PasswordAuthentication/' /etc/ssh/sshd_config",
+    "sudo sed -i 's/^PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config",
     "sudo systemctl restart sshd",
     "sudo useradd --create-home -s /bin/bash provisionuser",
     "echo 'provisionuser:Csit1234' | sudo chpasswd",
index b08495d..3b50b15 100644 (file)
@@ -101,7 +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/#PasswordAuthentication/' /etc/ssh/sshd_config",
+    "sudo sed -i 's/^PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config",
     "sudo systemctl restart sshd",
     "sudo useradd --create-home -s /bin/bash provisionuser",
     "echo 'provisionuser:Csit1234' | sudo chpasswd",
index 0979449..686614a 100644 (file)
@@ -149,7 +149,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/#PasswordAuthentication/' /etc/ssh/sshd_config",
+    "sudo sed -i 's/^PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config",
     "sudo systemctl restart sshd",
     "sudo useradd --create-home -s /bin/bash provisionuser",
     "echo 'provisionuser:Csit1234' | sudo chpasswd",
index f9c3a15..08c3d53 100644 (file)
@@ -161,7 +161,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/#PasswordAuthentication/' /etc/ssh/sshd_config",
+    "sudo sed -i 's/^PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config",
     "sudo systemctl restart sshd",
     "sudo useradd --create-home -s /bin/bash provisionuser",
     "echo 'provisionuser:Csit1234' | sudo chpasswd",
index b4c38af..fcdac7d 100644 (file)
@@ -149,7 +149,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/#PasswordAuthentication/' /etc/ssh/sshd_config",
+    "sudo sed -i 's/^PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config",
     "sudo systemctl restart sshd",
     "sudo useradd --create-home -s /bin/bash provisionuser",
     "echo 'provisionuser:Csit1234' | sudo chpasswd",