From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B58532877CF for ; Thu, 2 Oct 2025 20:21:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759436504; cv=none; b=r305snXTx5oSci+YP/LvYfIYxsVoNu0aR+ZM0SATb4WGj0vSSMrhAnPcal73xRVT3rUwWKuayb2iqblymm46m2dZqUHlUogkwlryFw1OphzuPHRlOQhWsLyolDAaFtTB8NTOu1E/NPQAvm+4IDtzAnQRWMlJl4qkef9VfZxqHfs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759436504; c=relaxed/simple; bh=MZB0eWa+Yn7dvvN8LE1fkQhGz6yw4bQJ09Ywckz6vE4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nm5nQRGAH5xjoj36wtlSz+Eo2tbPXDlPApYUx6c4eQ4B3BUdrqUpSjrEB7j3Lgjwf6qzr9XVYGvRzh1n4QsM0vRXZAtiq9fFXtXMJcbd7g8zLIVwJRAjAK/YbkOoVNAPy0qZVhWy9E8F8DvXXwUgj+lsAHP1xQJCU/Aw6/MsQLE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=G437lDf1; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="G437lDf1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61BCEC4CEF9; Thu, 2 Oct 2025 20:21:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1759436504; bh=MZB0eWa+Yn7dvvN8LE1fkQhGz6yw4bQJ09Ywckz6vE4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G437lDf1tDs2XAkJlpHKjIysfnE9+SeiL4IbLmAeu4XvD2yvlP73ga6o2TRMtO/ZB xoaNcjQ9H6cp2kfFqD/K7WFo2Eg+kqRWpNhi1wcKNgkuFEWJNDqucAreZnXjsy3gVL 0/otS3W8b6/PLvfkueF4e/cCTdgZEy96VUnjDST2An9tD/6RoZXFMmg2VY2qo8e1mH g3cFA0AeC/0Lb69OP626hv/jF7dLYaAdFT77ba1UQSzHK7l6oLc2bHMWoJMQOR5+Hb 1le3xhz2AIvgg9e2nzwQCuhcYe2p7wyKyZzJg7DroCv58DRAQXKWEA5csWx1FeWbQM TlOwrRCnoKGGg== From: Chuck Lever To: Cc: Chuck Lever Subject: [PATCH v1 5/6] terraform: Hoist the AWS cloud-init script into terraform/ Date: Thu, 2 Oct 2025 16:21:39 -0400 Message-ID: <20251002202140.3596787-6-cel@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251002202140.3596787-1-cel@kernel.org> References: <20251002202140.3596787-1-cel@kernel.org> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Chuck Lever I'm about to add the use of a cloud-init script to the other cloud providers. Place the cloud-init script used currently by AWS in a more generic location. Generated-by: Claude AI Signed-off-by: Chuck Lever --- terraform/aws/main.tf | 2 +- terraform/{aws/templates/script.sh => scripts/cloud-init.sh} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename terraform/{aws/templates/script.sh => scripts/cloud-init.sh} (100%) diff --git a/terraform/aws/main.tf b/terraform/aws/main.tf index ac6c6846f20a..949b2febcf0a 100644 --- a/terraform/aws/main.tf +++ b/terraform/aws/main.tf @@ -76,7 +76,7 @@ resource "aws_key_pair" "kdevops_keypair" { data "template_file" "script_user_data" { count = local.kdevops_num_boxes - template = file("templates/script.sh") + template = file("../scripts/cloud-init.sh") vars = { user_data_log_dir = var.user_data_log_dir diff --git a/terraform/aws/templates/script.sh b/terraform/scripts/cloud-init.sh similarity index 100% rename from terraform/aws/templates/script.sh rename to terraform/scripts/cloud-init.sh -- 2.51.0