File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
lib/base/lib/assets/user-data Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -66,14 +66,6 @@ echo "Downloading assets zip file"
66
66
aws s3 cp $ASSETS_S3_PATH ./assets.zip
67
67
unzip -q assets.zip
68
68
69
- echo ' Configuring CloudWatch Agent'
70
- cp /opt/cw-agent.json /opt/aws/amazon-cloudwatch-agent/etc/custom-amazon-cloudwatch-agent.json
71
-
72
- echo " Starting CloudWatch Agent"
73
- /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl \
74
- -a fetch-config -c file:/opt/aws/amazon-cloudwatch-agent/etc/custom-amazon-cloudwatch-agent.json -m ec2 -s
75
- systemctl status amazon-cloudwatch-agent
76
-
77
69
echo ' Uninstalling AWS CLI v1'
78
70
yum remove awscli
79
71
@@ -295,6 +287,14 @@ lsblk -d
295
287
chown -R bcuser:bcuser /data
296
288
chmod -R 755 /data
297
289
290
+ echo ' Configuring CloudWatch Agent'
291
+ cp /opt/cw-agent.json /opt/aws/amazon-cloudwatch-agent/etc/custom-amazon-cloudwatch-agent.json
292
+
293
+ echo " Starting CloudWatch Agent"
294
+ /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl \
295
+ -a fetch-config -c file:/opt/aws/amazon-cloudwatch-agent/etc/custom-amazon-cloudwatch-agent.json -m ec2 -s
296
+ systemctl restart amazon-cloudwatch-agent
297
+
298
298
if [ " $RESTORE_FROM_SNAPSHOT " == " false" ]; then
299
299
echo " Skipping restoration from snapshot. Starting node"
300
300
systemctl daemon-reload
You can’t perform that action at this time.
0 commit comments