-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Cleaned up the local methods a bit Still need to add a local get/put object * Added test@local method * Some cleanup while retesting the versioning branch Mostly just improvements to verbose and adding dryrun method * Some dev improvements * Deployment improvements * Fixing README * Added bom check and some bug fixes * Added senstate to versioning branch Co-authored-by: Christian Parker <cparker@talloaks-environmental.com>
- Loading branch information
Showing
14 changed files
with
577 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,31 @@ | ||
#!/usr/bin/env node | ||
const path = process.env.ENV ? `../.env.${process.env.ENV}` : '.env'; | ||
require('dotenv').config({ path }); | ||
|
||
import * as cdk from "@aws-cdk/core"; | ||
import "source-map-support/register"; | ||
import { EtlPipeline } from "./stack"; | ||
|
||
const app = new cdk.App(); | ||
let sources = require('../fetcher/sources') | ||
|
||
if(process.env.DEPLOYED_SOURCES) { | ||
const DEPLOYED_SOURCES = process.env.DEPLOYED_SOURCES.split(","); | ||
sources = sources.filter((d :any)=>DEPLOYED_SOURCES.includes(d.name)) | ||
} | ||
|
||
const id = process.env.STACK || `cac-pipeline` | ||
|
||
const stack = new EtlPipeline(app, `cac-pipeline`, { | ||
description: `ETL Pipeline`, | ||
const stack = new EtlPipeline(app, id, { | ||
description: `ETL Pipeline for ${id}`, | ||
sources, | ||
fetcherModuleDir: "../fetcher", | ||
schedulerModuleDir: "../scheduler", | ||
sources: require('../fetcher/sources'), | ||
bucketName: process.env.BUCKET || 'talloaks-openaq-ingest', | ||
fetcherEnv: { | ||
API_URL: process.env.API_URL || 'https://aagsfsmu92.execute-api.us-west-2.amazonaws.com' | ||
}, | ||
}); | ||
|
||
|
||
cdk.Tags.of(stack).add('project', 'cac') | ||
cdk.Tags.of(stack).add('Project', 'cac') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.