From c7824811f30806a45652a3c4152d9abd23639b47 Mon Sep 17 00:00:00 2001 From: chaba11 <39912868+chaba11@users.noreply.github.com> Date: Wed, 1 Feb 2023 16:38:51 -0300 Subject: [PATCH] Fix create_machine_script.tmpl cloudwatch agent --- create_machine_script.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create_machine_script.tmpl b/create_machine_script.tmpl index 8d144be..f876cd2 100644 --- a/create_machine_script.tmpl +++ b/create_machine_script.tmpl @@ -43,7 +43,7 @@ # } # } # EOT -# sudo sed -i 's/AWS_INSTANCE_ID/$${aws:InstanceId}/g' amazon-cloudwatch-agent.json +# sudo sed -i 's/AWS_INSTANCE_ID/${aws:InstanceId}/g' amazon-cloudwatch-agent.json # sudo cp amazon-cloudwatch-agent.json /opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.json # sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -c file:/opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.json # sudo systemctl restart amazon-cloudwatch-agent