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

feat: add clean schedule and resolve npm audit issues #26

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ jspm_packages
# Serverless directories
.serverless

# SAM directories
.aws-sam

# SAM config
samconfig.toml

# packaged.yml
packaged.yml

Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ AutoDeployMyAwesomeLambdaLayer:
SemanticVersion: <enter latest version>
Parameters:
VersionsToKeep: <defaults to 3>
CleanSchedule: <defaults to rate(1 hour)>
```

The CleanSchedule parameter supports any Schedule Expression for a CloudWatch event. The default uses a rate expression that will execute hourly, however you can easily specify any desired number of minutes/hours/days between runs or use a cron expression. Examples: `rate(12 hours)` or `rate(1 day)`. More details on valid options can be found on the [Amazon CloudWatch Events website](https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think they're called "EventBridge events" now


To do the same via CloudFormation or the Serverless framework, you need to first add the following `Transform`:

```yml
Expand Down
Loading