mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
updated cron job settings
This commit is contained in:
@@ -61,7 +61,7 @@ Parameters:
|
|||||||
ProwlerCron:
|
ProwlerCron:
|
||||||
Description: Enter cron schedule. Default, runs everyday at 1am. See https://crontab.guru/, for syntax help.
|
Description: Enter cron schedule. Default, runs everyday at 1am. See https://crontab.guru/, for syntax help.
|
||||||
Type: String
|
Type: String
|
||||||
Default: 10 * * * *
|
Default: "0 1 * * *"
|
||||||
LatestAmazonLinux2AmiId:
|
LatestAmazonLinux2AmiId:
|
||||||
Type: AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>
|
Type: AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>
|
||||||
Description: Latest AMI ID for Amazon Linux 2 (via AWS Publis SSM Parameters. See https://tinyurl.com/aws-public-ssm-parameters.
|
Description: Latest AMI ID for Amazon Linux 2 (via AWS Publis SSM Parameters. See https://tinyurl.com/aws-public-ssm-parameters.
|
||||||
@@ -196,16 +196,16 @@ Resources:
|
|||||||
group: ec2-user
|
group: ec2-user
|
||||||
prowler-schedule:
|
prowler-schedule:
|
||||||
files:
|
files:
|
||||||
/home/ec2-user/prowlercron:
|
/home/ec2-user/mycron-prowler:
|
||||||
content: !Sub |
|
content: !Sub |
|
||||||
${ProwlerCron} run-prowler-reports.sh
|
${ProwlerCron} bash -lc ./run-prowler-reports.sh > mycron-prowler.log
|
||||||
mode: "000600"
|
mode: "000600"
|
||||||
owner: ec2-user
|
owner: ec2-user
|
||||||
group: ec2-user
|
group: ec2-user
|
||||||
commands:
|
commands:
|
||||||
01-create-prowler-cron-job:
|
01-create-prowler-cron-job:
|
||||||
command: |
|
command: |
|
||||||
sudo -u ec2-user crontab /home/ec2-user/prowlercron
|
sudo -u ec2-user crontab /home/ec2-user/mycron-prowler
|
||||||
|
|
||||||
ProwlerSecurityGroup:
|
ProwlerSecurityGroup:
|
||||||
Type: AWS::EC2::SecurityGroup
|
Type: AWS::EC2::SecurityGroup
|
||||||
|
|||||||
Reference in New Issue
Block a user