Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i schedule scar run -n <Function name> #347

Closed
tarunkumard opened this issue Feb 25, 2020 · 2 comments
Closed

How can i schedule scar run -n <Function name> #347

tarunkumard opened this issue Feb 25, 2020 · 2 comments

Comments

@tarunkumard
Copy link

Hey there,

Could you hep me in finding a a way where i need to invoke the lambda function created a part of scar init -f sre.yaml to be executed or run at scheduled intervals ?

any ideas ?

Also as of now the only was i am running scar project is going inside container using below commands
sudo docker build -t scar -f Dockerfile .
docker run -it -v $AWS_CREDENTIALS_FOLDER:/home/scar/.aws -v $SCAR_CONFIG_FOLDER:/home/scar/.scar scar

But as you already know this isnt the idle way in productioni need a automated way to run these lambda function invocations?

@srisco
Copy link
Contributor

srisco commented Feb 26, 2020

Hello,

What you propose can be done by creating a CloudWatch event to trigger your Lambda function. At the moment SCAR don't allow to define CloudWatch events in the config (but we plan to implement it #320). However, you can create it manually (see https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/RunLambdaSchedule.html).

Hope it's helpful.

Cheers.

@tarunkumard
Copy link
Author

offcourse its useful ,thanks a ton

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants