Skip to content

Commit

Permalink
Fix config value propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
msiukola committed Jan 8, 2025
1 parent bf77cb8 commit 0121563
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions cdk/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export interface Config {
};
environment: string;
lampiFileHandlerActive: string;
dbtProcessingEnabled: string;
dbtCron: appscaling.CronOptions;
profile: string;
publicHostedZone: string;
Expand Down
4 changes: 2 additions & 2 deletions cdk/lib/ecs-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ export class EcsStack extends cdk.Stack {
vpc: props.vpc,
allowAllOutbound: true,
});
const dbtProcessingEnabled =
process.env.dbtProcessingEnabled?.toLowerCase() === 'true';

props.auroraSecurityGroup.addIngressRule(
ecsSecurityGroup,
Expand Down Expand Up @@ -101,6 +99,8 @@ export class EcsStack extends cdk.Stack {
);

const schedule = appscaling.Schedule.cron(config.dbtCron);
const dbtProcessingEnabled = config.dbtProcessingEnabled?.toLowerCase() === 'true';

const scheduledFargateTask = new ecsPatterns.ScheduledFargateTask(
this,
dbtFargateTaskName,
Expand Down

0 comments on commit 0121563

Please sign in to comment.