fix(infra): AWS ARM 33/42133/2
authorPeter Mikus <peter.mikus@protonmail.ch>
Fri, 10 Jan 2025 12:50:46 +0000 (13:50 +0100)
committerPeter Mikus <peter.mikus@protonmail.ch>
Mon, 13 Jan 2025 08:37:39 +0000 (08:37 +0000)
Signed-off-by: Peter Mikus <peter.mikus@protonmail.ch>
Change-Id: I3d8f0af3f73d206dff46b72aca507f51bf74d823

fdio.infra.terraform/terraform-aws-2n-c7gn/variables.tf
fdio.infra/packer-aws-sut/ubuntu_noble_arm.pkr.hcl

index 41fceda..891b205 100644 (file)
@@ -38,7 +38,7 @@ variable "placement_group_strategy" {
 variable "tg_ami" {
   description = "AMI to use for the instance."
   type        = string
-  default     = "ami-06ea2ad776e2a8461"
+  default     = "ami-09a82dc14ad8658ce"
 }
 
 variable "tg_associate_public_ip_address" {
@@ -74,7 +74,7 @@ variable "tg_source_dest_check" {
 variable "sut1_ami" {
   description = "AMI to use for the instance."
   type        = string
-  default     = "ami-0c0f39556bbb626b2"
+  default     = "ami-0f79fc4ee6157a1b4"
 }
 
 variable "sut1_associate_public_ip_address" {
index 1d3c78e..7c2ac3b 100644 (file)
@@ -15,7 +15,7 @@ variable "first_run_commands" {
   ]
 }
 
-variable "last_run_commands" {
+variable "last_run_commands_sut" {
   description = "Commands to run after deployment via remote-exec"
   type        = list(string)
   default = [
@@ -58,10 +58,11 @@ source "amazon-ebs" "csit_ubuntu_noble_arm_sut" {
     volume_type = "gp2"
   }
   force_deregister = true
-  region           = "eu-west-1"
+  region           = "us-east-1"
   skip_create_ami  = false
-  source_ami       = "ami-099a546c02844706e"
+  source_ami       = "ami-0932ffb346ea84d48"
   ssh_username     = "ubuntu"
+  ssh_timeout      = "60m"
 }
 
 build {
@@ -78,11 +79,10 @@ build {
     groups        = ["sut_aws"]
     extra_arguments = [
       "--extra-vars", "ansible_ssh_pass=${var.ansible_provision_pwd}",
-      "--extra-vars", "ansible_python_interpreter=${var.ansible_python_executable}",
       "--extra-vars", "aws=true"
     ]
   }
   provisioner "shell" {
-    inline = var.last_run_commands
+    inline = var.last_run_commands_sut
   }
 }
\ No newline at end of file