From e1b63689469b1915b5ec9d8e75e2d758961e8c36 Mon Sep 17 00:00:00 2001 From: Markus Tacker Date: Mon, 1 Feb 2021 17:16:37 +0100 Subject: [PATCH] fix: change to asset-tracker --- README.md | 3 ++- cdk/cloudformation.ts | 2 +- lambda/cleaner.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c0b26ee0..b8471347 100644 --- a/README.md +++ b/README.md @@ -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-`. diff --git a/cdk/cloudformation.ts b/cdk/cloudformation.ts index 7f58d59b..1c17220d 100644 --- a/cdk/cloudformation.ts +++ b/cdk/cloudformation.ts @@ -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, diff --git a/lambda/cleaner.ts b/lambda/cleaner.ts index 42498599..598d49dd 100644 --- a/lambda/cleaner.ts +++ b/lambda/cleaner.ts @@ -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 => { const { StackSummaries } = await cf.send(