From e4a5fe5971b45d2415ec74f457d8be1c3a06510f Mon Sep 17 00:00:00 2001
From: santini-cyber <98556065+santini-cyber@users.noreply.github.com>
Date: Mon, 25 Sep 2023 23:51:39 -0400
Subject: [PATCH] =?UTF-8?q?changing=20the=20build=20behavior=20in=20the=20?=
 =?UTF-8?q?aws=20cloudformation=20template=20from=20[=E2=80=A6=20(#247)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

changing the build behavior in the aws cloudformation template from [scripts-user, always] to [scripts-user, once-per-instance] so the userdata script is not run every time the server boots.
---
 .../cloudformation/aws_build_from_source_no_credentials.json  | 4 ++--
 cloud-deployments/aws/cloudformation/cf_template.template     | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/cloud-deployments/aws/cloudformation/aws_build_from_source_no_credentials.json b/cloud-deployments/aws/cloudformation/aws_build_from_source_no_credentials.json
index a96413774..86971696e 100644
--- a/cloud-deployments/aws/cloudformation/aws_build_from_source_no_credentials.json
+++ b/cloud-deployments/aws/cloudformation/aws_build_from_source_no_credentials.json
@@ -70,7 +70,7 @@
                 "\n",
                 "#cloud-config\n",
                 "cloud_final_modules:\n",
-                "- [scripts-user, always]\n",
+                "- [scripts-user, once-per-instance]\n",
                 "\n",
                 "\n",
                 "--//\n",
@@ -260,4 +260,4 @@
       }
     }
   }
-}
\ No newline at end of file
+}
diff --git a/cloud-deployments/aws/cloudformation/cf_template.template b/cloud-deployments/aws/cloudformation/cf_template.template
index b261a2d89..7aeb28b14 100644
--- a/cloud-deployments/aws/cloudformation/cf_template.template
+++ b/cloud-deployments/aws/cloudformation/cf_template.template
@@ -70,7 +70,7 @@
                 "\n",
                 "#cloud-config\n",
                 "cloud_final_modules:\n",
-                "- [scripts-user, always]\n",
+                "- [scripts-user, once-per-instance]\n",
                 "\n",
                 "\n",
                 "--//\n",
@@ -252,4 +252,4 @@
       }
     }
   }
-}
\ No newline at end of file
+}
-- 
GitLab