From ba0d6fe6c8a4c73b6420a4328c832161a5335ff4 Mon Sep 17 00:00:00 2001 From: Dane H Lim Date: Mon, 2 Dec 2024 16:38:25 -0800 Subject: [PATCH] Tag name for update check's ec2 run-instances call --- scripts/check-update-security.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/check-update-security.sh b/scripts/check-update-security.sh index 973e226a..fadee6a8 100755 --- a/scripts/check-update-security.sh +++ b/scripts/check-update-security.sh @@ -118,7 +118,8 @@ instance_id=$(aws ec2 run-instances \ --image-id $ami_id \ --instance-type $instance_type \ --iam-instance-profile Arn=$IAM_INSTANCE_PROFILE_ARN \ - --user-data file://user_data.txt | + --user-data file://user_data.txt \ + --tag-specifications 'ResourceType=instance,Tags=[{Key=Name,Value='$platform-check-update-security'}]' | jq -r '.Instances[0].InstanceId') command_params='commands=["yum check-update --security --sec-severity=critical --exclude=nvidia*,docker*,cuda*,containerd*,runc* -q"]'