Skip to content

Commit

Permalink
fix: change to asset-tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Feb 1, 2021
1 parent 1490ca3 commit e1b6368
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ which deletes stacks that have a certain prefix and are older than 24 hours.
npx cdk deploy

You can configure the regular expression used to check against a stack name with
the environment `STACK_NAME_REGEX` variable of the lambda, e.g. `^bifravst-`.
the environment `STACK_NAME_REGEX` variable of the lambda, e.g.
`^asset-tracker-`.
2 changes: 1 addition & 1 deletion cdk/cloudformation.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { App } from './App'

const STACK_NAME = process.env.STACK_NAME ?? 'cloudformation-cleaner'
const STACK_NAME_PREFIX = process.env.STACK_NAME_PREFIX ?? 'bifravst-'
const STACK_NAME_PREFIX = process.env.STACK_NAME_PREFIX ?? 'asset-tracker-'

new App({
stackName: STACK_NAME,
Expand Down
2 changes: 1 addition & 1 deletion lambda/cleaner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const s3 = new S3Client({})
const STACK_NAME_REGEX =
process.env.STACK_NAME_REGEX !== undefined
? new RegExp(process.env.STACK_NAME_REGEX)
: /^bifravst-/
: /^asset-tracker-/

export const handler = async (): Promise<void> => {
const { StackSummaries } = await cf.send(
Expand Down

0 comments on commit e1b6368

Please sign in to comment.