This repository was archived by the owner on Nov 1, 2023. It is now read-only.
File tree 1 file changed +34
-5
lines changed
1 file changed +34
-5
lines changed Original file line number Diff line number Diff line change 400
400
"group": "root"
401
401
}
402
402
},
403
+ "files": {
404
+ "/etc/awslogs-config-file": {
405
+ "source": {
406
+ "Fn::Sub": [
407
+ "https://s3.amazonaws.com/${QSS3BucketName}/${QSS3KeyPrefix}scripts/awslogs-config-file",
408
+ {
409
+ "QSS3BucketName": {
410
+ "Ref": "QSS3BucketName"
411
+ },
412
+ "QSS3KeyPrefix": {
413
+ "Ref": "QSS3KeyPrefix"
414
+ }
415
+ }
416
+ ]
417
+ },
418
+ "mode": "000700",
419
+ "owner": "root",
420
+ "group": "root"
421
+ },
422
+ "/usr/local/awslogs-agent-setup.py": {
423
+ "source": "https://s3.amazonaws.com/aws-cloudwatch/downloads/latest/awslogs-agent-setup.py",
424
+ "mode": "000700",
425
+ "owner": "root",
426
+ "group": "root"
427
+ }
428
+ },
403
429
"commands": {
404
- "01_run_awslogs_agent_setup.py": {
430
+ "01_create_awslogs_config_file": {
431
+ "command": "sed -i \"s/__VAULT_LOG_GROUP__/${ColdCordaLogGroup}/g\" /etc/awslogs-config-file"
432
+ },
433
+ "02_run_awslogs_agent_setup.py": {
405
434
"command": {
406
435
"Fn::Sub": [
407
- "python /usr/local/awslogs-agent-setup.py -n -r ${Region} -c https://s3.amazonaws.com/${QSS3BucketName}/${QSS3KeyPrefix}scripts /awslogs-config-file",
436
+ "python /usr/local/awslogs-agent-setup.py -n -r ${Region} -c /etc /awslogs-config-file",
408
437
{
409
438
"Region": {
410
439
"Ref": "AWS::Region"
419
448
]
420
449
}
421
450
},
422
- "02_enable_awslogs_service ": {
451
+ "03_enable_awslogs_service ": {
423
452
"command": "systemctl enable awslogs"
424
453
},
425
- "03_start_awslogs_service ": {
454
+ "04_start_awslogs_service ": {
426
455
"command": "systemctl start awslogs"
427
456
},
428
457
"04_make_mon_put_instance_data_exececutable": {
429
458
"command": "chmod +x /usr/local/aws-scripts-mon/mon-put-instance-data.pl"
430
459
},
431
- "05_install_crontab ": {
460
+ "06_install_crontab ": {
432
461
"command": "crontab /etc/cron.hourly/cloudwatch-monitoring.sh"
433
462
}
434
463
}
You can’t perform that action at this time.
0 commit comments