This repository was archived by the owner on Nov 1, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +34
-5
lines changed Expand file tree Collapse file tree 1 file changed +34
-5
lines changed Original file line number Diff line number Diff line change 400400 "group": "root"
401401 }
402402 },
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+ },
403429 "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": {
405434 "command": {
406435 "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",
408437 {
409438 "Region": {
410439 "Ref": "AWS::Region"
419448 ]
420449 }
421450 },
422- "02_enable_awslogs_service ": {
451+ "03_enable_awslogs_service ": {
423452 "command": "systemctl enable awslogs"
424453 },
425- "03_start_awslogs_service ": {
454+ "04_start_awslogs_service ": {
426455 "command": "systemctl start awslogs"
427456 },
428457 "04_make_mon_put_instance_data_exececutable": {
429458 "command": "chmod +x /usr/local/aws-scripts-mon/mon-put-instance-data.pl"
430459 },
431- "05_install_crontab ": {
460+ "06_install_crontab ": {
432461 "command": "crontab /etc/cron.hourly/cloudwatch-monitoring.sh"
433462 }
434463 }
You can’t perform that action at this time.
0 commit comments