dbt-platform-helper 12.0.2__py3-none-any.whl → 12.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of dbt-platform-helper might be problematic. Click here for more details.
- dbt_platform_helper/COMMANDS.md +7 -8
- dbt_platform_helper/commands/application.py +1 -0
- dbt_platform_helper/commands/codebase.py +63 -228
- dbt_platform_helper/commands/conduit.py +34 -409
- dbt_platform_helper/commands/secrets.py +1 -1
- dbt_platform_helper/constants.py +12 -1
- dbt_platform_helper/domain/codebase.py +222 -0
- dbt_platform_helper/domain/conduit.py +172 -0
- dbt_platform_helper/domain/database_copy.py +1 -1
- dbt_platform_helper/exceptions.py +61 -0
- dbt_platform_helper/providers/__init__.py +0 -0
- dbt_platform_helper/providers/cloudformation.py +105 -0
- dbt_platform_helper/providers/copilot.py +144 -0
- dbt_platform_helper/providers/ecs.py +78 -0
- dbt_platform_helper/providers/secrets.py +85 -0
- dbt_platform_helper/templates/addons/svc/prometheus-policy.yml +2 -0
- dbt_platform_helper/templates/pipelines/environments/manifest.yml +0 -1
- dbt_platform_helper/utils/application.py +1 -4
- dbt_platform_helper/utils/aws.py +132 -0
- dbt_platform_helper/utils/files.py +70 -0
- dbt_platform_helper/utils/git.py +13 -0
- dbt_platform_helper/utils/validation.py +121 -3
- {dbt_platform_helper-12.0.2.dist-info → dbt_platform_helper-12.2.0.dist-info}/METADATA +2 -1
- {dbt_platform_helper-12.0.2.dist-info → dbt_platform_helper-12.2.0.dist-info}/RECORD +27 -29
- {dbt_platform_helper-12.0.2.dist-info → dbt_platform_helper-12.2.0.dist-info}/WHEEL +1 -1
- dbt_platform_helper/templates/env/overrides/.gitignore +0 -12
- dbt_platform_helper/templates/env/overrides/README.md +0 -11
- dbt_platform_helper/templates/env/overrides/bin/override.ts +0 -9
- dbt_platform_helper/templates/env/overrides/cdk.json +0 -20
- dbt_platform_helper/templates/env/overrides/log_resource_policy.json +0 -68
- dbt_platform_helper/templates/env/overrides/package-lock.json +0 -4307
- dbt_platform_helper/templates/env/overrides/package.json +0 -27
- dbt_platform_helper/templates/env/overrides/stack.ts +0 -51
- dbt_platform_helper/templates/env/overrides/tsconfig.json +0 -32
- {dbt_platform_helper-12.0.2.dist-info → dbt_platform_helper-12.2.0.dist-info}/LICENSE +0 -0
- {dbt_platform_helper-12.0.2.dist-info → dbt_platform_helper-12.2.0.dist-info}/entry_points.txt +0 -0
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "override",
|
|
3
|
-
"version": "0.1.0",
|
|
4
|
-
"bin": {
|
|
5
|
-
"override": "bin/override.js"
|
|
6
|
-
},
|
|
7
|
-
"scripts": {
|
|
8
|
-
"build": "tsc",
|
|
9
|
-
"watch": "tsc -w",
|
|
10
|
-
"cdk": "cdk"
|
|
11
|
-
},
|
|
12
|
-
"devDependencies": {
|
|
13
|
-
"@types/jest": "^29.2.4",
|
|
14
|
-
"@types/node": "18.11.15",
|
|
15
|
-
"jest": "^29.3.1",
|
|
16
|
-
"ts-jest": "^29.0.3",
|
|
17
|
-
"aws-cdk": "2.137.0",
|
|
18
|
-
"ts-node": "^10.9.1",
|
|
19
|
-
"typescript": "~4.9.4"
|
|
20
|
-
},
|
|
21
|
-
"dependencies": {
|
|
22
|
-
"aws-cdk-lib": "2.137.0",
|
|
23
|
-
"constructs": "^10.0.0",
|
|
24
|
-
"source-map-support": "^0.5.21",
|
|
25
|
-
"yaml": "^2.3.4"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import * as cdk from 'aws-cdk-lib';
|
|
2
|
-
import { aws_cloudformation as cloudformation, aws_logs as logs, Fn } from 'aws-cdk-lib';
|
|
3
|
-
import * as path from 'path';
|
|
4
|
-
import resource_policy from './log_resource_policy.json';
|
|
5
|
-
import { readFileSync } from "fs";
|
|
6
|
-
import { parse } from 'yaml';
|
|
7
|
-
|
|
8
|
-
interface TransformedStackProps extends cdk.StackProps {
|
|
9
|
-
readonly appName: string;
|
|
10
|
-
readonly envName: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export class TransformedStack extends cdk.Stack {
|
|
14
|
-
public readonly template: cdk.cloudformation_include.CfnInclude;
|
|
15
|
-
public readonly appName: string;
|
|
16
|
-
public readonly envName: string;
|
|
17
|
-
|
|
18
|
-
constructor(scope: cdk.App, id: string, props: TransformedStackProps) {
|
|
19
|
-
super(scope, id, props);
|
|
20
|
-
this.template = new cdk.cloudformation_include.CfnInclude(this, 'Template', {
|
|
21
|
-
templateFile: path.join('.build', 'in.yml'),
|
|
22
|
-
});
|
|
23
|
-
this.appName = props.appName;
|
|
24
|
-
this.envName = props.envName;
|
|
25
|
-
|
|
26
|
-
this.addLogResourcePolicy();
|
|
27
|
-
this.uploadAddonConfiguration();
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
private addLogResourcePolicy() {
|
|
31
|
-
const addonStack = this.template.getResource("AddonsStack") as cloudformation.CfnStack;
|
|
32
|
-
const logResourcePolicy = this.template.getResource("LogResourcePolicy") as logs.CfnResourcePolicy;
|
|
33
|
-
|
|
34
|
-
addonStack.addDependency(logResourcePolicy);
|
|
35
|
-
logResourcePolicy.policyDocument = Fn.sub(JSON.stringify(resource_policy));
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
private uploadAddonConfiguration() {
|
|
39
|
-
const deployRepoRoot = path.join(process.cwd(), '..', '..', '..');
|
|
40
|
-
|
|
41
|
-
const addonConfig = parse(readFileSync(
|
|
42
|
-
path.join(deployRepoRoot, 'extensions.yml'),
|
|
43
|
-
).toString('utf-8'));
|
|
44
|
-
|
|
45
|
-
new cdk.aws_ssm.CfnParameter(this, 'AddonConfig', {
|
|
46
|
-
name: `/copilot/applications/${this.appName}/environments/${this.envName}/addons`,
|
|
47
|
-
type: "String",
|
|
48
|
-
value: JSON.stringify(addonConfig),
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
|
-
"module": "commonjs",
|
|
5
|
-
"lib": [
|
|
6
|
-
"es2020"
|
|
7
|
-
],
|
|
8
|
-
"declaration": true,
|
|
9
|
-
"strict": true,
|
|
10
|
-
"noImplicitAny": true,
|
|
11
|
-
"strictNullChecks": true,
|
|
12
|
-
"noImplicitThis": true,
|
|
13
|
-
"alwaysStrict": true,
|
|
14
|
-
"noUnusedLocals": false,
|
|
15
|
-
"noUnusedParameters": false,
|
|
16
|
-
"noImplicitReturns": true,
|
|
17
|
-
"noFallthroughCasesInSwitch": false,
|
|
18
|
-
"inlineSourceMap": true,
|
|
19
|
-
"inlineSources": true,
|
|
20
|
-
"experimentalDecorators": true,
|
|
21
|
-
"strictPropertyInitialization": false,
|
|
22
|
-
"resolveJsonModule": true,
|
|
23
|
-
"esModuleInterop": true,
|
|
24
|
-
"typeRoots": [
|
|
25
|
-
"./node_modules/@types"
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
|
-
"exclude": [
|
|
29
|
-
"node_modules",
|
|
30
|
-
"cdk.out"
|
|
31
|
-
]
|
|
32
|
-
}
|
|
File without changes
|
{dbt_platform_helper-12.0.2.dist-info → dbt_platform_helper-12.2.0.dist-info}/entry_points.txt
RENAMED
|
File without changes
|