Skip to content

Commit

Permalink
Merge pull request #3 from transcom/B-19599-REPACKAGE-AWS-TOOLS
Browse files Browse the repository at this point in the history
B 19599 repackage aws tools
  • Loading branch information
echarris2 authored Apr 19, 2024
2 parents 06f7194 + 5a1896f commit bcb9748
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 20 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/validate.yml

This file was deleted.

12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
Creates an AWS Lambda function to clean up manual RDS snapshots
on a scheduled interval using [truss-aws-tools](https://github.com/trussworks/truss-aws-tools).
Creates an AWS Lambda function to clean up manual RDS snapshots
on a scheduled interval using [milmove-aws-tools](https://github.com/transcom/milmove-aws-tools).

Creates the following resources:

* IAM role for Lambda function find and delete expired RDS snapshots for a
defined RDS instance.
* CloudWatch Event to trigger Lambda function on a schedule.
* CloudWatch Events to trigger Lambda function on a schedule.
* AWS Lambda function to actually delete excess manual RDS snapshots.


## Usage

```hcl
module "rds-snapshot-cleaner" {
source = "trussworks/rds-snapshot-cleaner/aws"
version = "1.0.0"
source = "transcom/rds-snapshot-cleaner/aws"
version = "4.0.3"
cleaner_db_instance_identifier = "app-staging"
cleaner_dry_run = "false"
Expand All @@ -24,7 +24,7 @@ module "rds-snapshot-cleaner" {
environment = "staging"
interval_minutes = "5"
s3_bucket = "lambda-builds-us-east-1"
version_to_deploy = "2.6"
version_to_deploy = "3.1"
}
```

Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
locals {
pkg = "truss-aws-tools"
pkg = "milmove-aws-tools"
name = "rds-snapshot-cleaner"
}

Expand Down

0 comments on commit bcb9748

Please sign in to comment.