dbt-platform-helper 12.6.0__py3-none-any.whl → 13.0.1__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 -7
- dbt_platform_helper/commands/codebase.py +2 -2
- dbt_platform_helper/commands/notify.py +5 -3
- dbt_platform_helper/commands/pipeline.py +17 -8
- dbt_platform_helper/constants.py +3 -1
- dbt_platform_helper/domain/codebase.py +35 -16
- dbt_platform_helper/domain/config_validator.py +5 -27
- dbt_platform_helper/domain/database_copy.py +6 -3
- dbt_platform_helper/domain/maintenance_page.py +94 -57
- dbt_platform_helper/domain/pipelines.py +53 -127
- dbt_platform_helper/domain/terraform_environment.py +4 -0
- dbt_platform_helper/providers/aws.py +5 -0
- dbt_platform_helper/providers/config.py +2 -2
- dbt_platform_helper/providers/ecr.py +20 -0
- dbt_platform_helper/providers/files.py +1 -1
- dbt_platform_helper/providers/load_balancers.py +4 -2
- dbt_platform_helper/providers/platform_config_schema.py +14 -15
- dbt_platform_helper/providers/terraform_manifest.py +120 -0
- dbt_platform_helper/providers/vpc.py +0 -5
- dbt_platform_helper/templates/environment-pipelines/main.tf +2 -2
- dbt_platform_helper/templates/environments/main.tf +3 -4
- dbt_platform_helper/utils/aws.py +16 -5
- {dbt_platform_helper-12.6.0.dist-info → dbt_platform_helper-13.0.1.dist-info}/METADATA +1 -1
- {dbt_platform_helper-12.6.0.dist-info → dbt_platform_helper-13.0.1.dist-info}/RECORD +27 -36
- dbt_platform_helper/templates/pipelines/codebase/manifest.yml +0 -56
- dbt_platform_helper/templates/pipelines/codebase/overrides/.gitignore +0 -12
- dbt_platform_helper/templates/pipelines/codebase/overrides/bin/override.ts +0 -8
- dbt_platform_helper/templates/pipelines/codebase/overrides/buildspec.deploy.yml +0 -29
- dbt_platform_helper/templates/pipelines/codebase/overrides/buildspec.image.yml +0 -48
- dbt_platform_helper/templates/pipelines/codebase/overrides/cdk.json +0 -20
- dbt_platform_helper/templates/pipelines/codebase/overrides/package-lock.json +0 -4428
- dbt_platform_helper/templates/pipelines/codebase/overrides/package.json +0 -27
- dbt_platform_helper/templates/pipelines/codebase/overrides/stack.ts +0 -521
- dbt_platform_helper/templates/pipelines/codebase/overrides/tsconfig.json +0 -30
- dbt_platform_helper/templates/pipelines/codebase/overrides/types.ts +0 -52
- {dbt_platform_helper-12.6.0.dist-info → dbt_platform_helper-13.0.1.dist-info}/LICENSE +0 -0
- {dbt_platform_helper-12.6.0.dist-info → dbt_platform_helper-13.0.1.dist-info}/WHEEL +0 -0
- {dbt_platform_helper-12.6.0.dist-info → dbt_platform_helper-13.0.1.dist-info}/entry_points.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: dbt-platform-helper
|
|
3
|
-
Version:
|
|
3
|
+
Version: 13.0.1
|
|
4
4
|
Summary: Set of tools to help transfer applications/services from GOV.UK PaaS to DBT PaaS augmenting AWS Copilot.
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Department for Business and Trade Platform Team
|
|
@@ -1,50 +1,52 @@
|
|
|
1
|
-
dbt_platform_helper/COMMANDS.md,sha256=
|
|
1
|
+
dbt_platform_helper/COMMANDS.md,sha256=RT-q5W8BolaeBKe-554oqRwAwMnNtLWTTa860brvelw,22648
|
|
2
2
|
dbt_platform_helper/README.md,sha256=B0qN2_u_ASqqgkGDWY2iwNGZt_9tUgMb9XqtaTuzYjw,1530
|
|
3
3
|
dbt_platform_helper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
dbt_platform_helper/addon-plans.yml,sha256=O46a_ODsGG9KXmQY_1XbSGqrpSaHSLDe-SdROzHx8Go,4545
|
|
5
5
|
dbt_platform_helper/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
dbt_platform_helper/commands/application.py,sha256=eVwCaYuwBlk0zx0xfA6fW7b-S1pl8gkyT1lHKeeh2R0,10147
|
|
7
|
-
dbt_platform_helper/commands/codebase.py,sha256=
|
|
7
|
+
dbt_platform_helper/commands/codebase.py,sha256=y2d2flGXv44KPv0Rj18gVrDG5t862OEzIoQiOK0STqw,2375
|
|
8
8
|
dbt_platform_helper/commands/conduit.py,sha256=QYMOYyCxFPzj_NJaXs3flIL7sHjOv75uAqPpjgh-EPo,2320
|
|
9
9
|
dbt_platform_helper/commands/config.py,sha256=qu2SM5l7-XU3VYSS9ArtLin_2FmKlSIcH2383S2RJIY,12131
|
|
10
10
|
dbt_platform_helper/commands/copilot.py,sha256=1CTyAkTQBF_i6zkqYzOIUo5wq9UYWfj-G1W8D2oRjmE,13623
|
|
11
11
|
dbt_platform_helper/commands/database.py,sha256=aG3zcMHL5PE96b7LSAu0FGCbgcycQej3AGRcd-bpXUo,4115
|
|
12
12
|
dbt_platform_helper/commands/environment.py,sha256=WUf5A6MwXAF7qTvW5phX2bH8C07GUs8fDPZs0cQvEg0,3909
|
|
13
13
|
dbt_platform_helper/commands/generate.py,sha256=YLCPb-xcPapGcsLn-7d1Am7BpGp5l0iecIDTOdNGjHk,722
|
|
14
|
-
dbt_platform_helper/commands/notify.py,sha256=
|
|
15
|
-
dbt_platform_helper/commands/pipeline.py,sha256=
|
|
14
|
+
dbt_platform_helper/commands/notify.py,sha256=lCS_JotQeg4NEpF4x145TCoZs0Pnf_LYf0rB1Iz_Tw0,3884
|
|
15
|
+
dbt_platform_helper/commands/pipeline.py,sha256=IdiJJJxZY47qI8ooyNNLlQo0gjQGrHebGbT-aIBoKBs,3000
|
|
16
16
|
dbt_platform_helper/commands/secrets.py,sha256=QjF9xUChioIr_P0fzqwyEcqLvcN-RNZmNFFlaUPVU9o,3994
|
|
17
17
|
dbt_platform_helper/commands/version.py,sha256=XVfSd53TDti4cceBqTmRfq_yZnvxs14RbrOjNJHW75U,1444
|
|
18
|
-
dbt_platform_helper/constants.py,sha256=
|
|
18
|
+
dbt_platform_helper/constants.py,sha256=DpHGG54lwjw3XGp2TKCEGNmzaz083lAWMGkEabujDrw,1050
|
|
19
19
|
dbt_platform_helper/default-extensions.yml,sha256=SU1ZitskbuEBpvE7efc3s56eAUF11j70brhj_XrNMMo,493
|
|
20
20
|
dbt_platform_helper/domain/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
21
|
-
dbt_platform_helper/domain/codebase.py,sha256=
|
|
21
|
+
dbt_platform_helper/domain/codebase.py,sha256=bLlTRqYmIz8J7W4siQczIJIt4Lc5-bjy-Qo46EyovFw,10496
|
|
22
22
|
dbt_platform_helper/domain/conduit.py,sha256=5C5GnF5jssJ1rFFCY6qaKgvLjYUkyytRJE4tHlanYa0,4370
|
|
23
|
-
dbt_platform_helper/domain/config_validator.py,sha256
|
|
23
|
+
dbt_platform_helper/domain/config_validator.py,sha256=KJw40kcb-mB_IoUsY2tyEoGjcof7VmGz97GVRiea2VQ,10594
|
|
24
24
|
dbt_platform_helper/domain/copilot_environment.py,sha256=b66w-UpqPb4L7_xIybEhBL0XrCJ0swTD0h0UelHeX5s,8840
|
|
25
|
-
dbt_platform_helper/domain/database_copy.py,sha256=
|
|
26
|
-
dbt_platform_helper/domain/maintenance_page.py,sha256=
|
|
27
|
-
dbt_platform_helper/domain/pipelines.py,sha256=
|
|
28
|
-
dbt_platform_helper/domain/terraform_environment.py,sha256=
|
|
25
|
+
dbt_platform_helper/domain/database_copy.py,sha256=XMabpXdk8aEVSupUXkb3WzIjMfWCzms4h7Jchm__CrA,9482
|
|
26
|
+
dbt_platform_helper/domain/maintenance_page.py,sha256=qs1Cyqe_zMhM7bvOWfvCysX_55bKiXoR8tPt_T6u3CE,19414
|
|
27
|
+
dbt_platform_helper/domain/pipelines.py,sha256=ey1tXNcfkkWJ88xRZewWF9iZvy1_hWxhrZdk83D-6k8,5649
|
|
28
|
+
dbt_platform_helper/domain/terraform_environment.py,sha256=GsGPc3ufk3wxj7zYq6xkcnmspMI1EIaiQTFjD_HFS-8,3324
|
|
29
29
|
dbt_platform_helper/domain/test_platform_terraform_manifest_generator.py,sha256=DvDlTeLGJfiAJKshBJKe9SZm4uMSOR7MMUPy37rUwKE,4325
|
|
30
30
|
dbt_platform_helper/jinja2_tags.py,sha256=hKG6RS3zlxJHQ-Op9r2U2-MhWp4s3lZir4Ihe24ApJ0,540
|
|
31
31
|
dbt_platform_helper/platform_exception.py,sha256=bheZV9lqGvrCVTNT92349dVntNDEDWTEwciZgC83WzE,187
|
|
32
32
|
dbt_platform_helper/providers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
33
|
-
dbt_platform_helper/providers/aws.py,sha256=
|
|
33
|
+
dbt_platform_helper/providers/aws.py,sha256=mlorH0fni6m8aUpm1x2jQPhaI3T0QsDMWpoGiSURBcI,1387
|
|
34
34
|
dbt_platform_helper/providers/cache.py,sha256=GIFVdpfXVnVgf2POQvBvZDP6pvYeUFjEuAdAQLbhJXs,2563
|
|
35
35
|
dbt_platform_helper/providers/cloudformation.py,sha256=SvCZgEVqxdpKfQMRAG3KzFQ43YeOEDqMm2tKmFGtacY,5347
|
|
36
|
-
dbt_platform_helper/providers/config.py,sha256=
|
|
36
|
+
dbt_platform_helper/providers/config.py,sha256=7PHTMUqcV_icREiHNIdHhsHpc86GJPYZUPw3NrlCXUA,3724
|
|
37
37
|
dbt_platform_helper/providers/copilot.py,sha256=nBbt-PoGXVkmb9njJti6Et8dq1W9GytW3jGBydNNYYU,5317
|
|
38
|
+
dbt_platform_helper/providers/ecr.py,sha256=lmLKGR5OQT8EyGsX-9M7oO0DHIyoMqgchBAVQBeoBZs,639
|
|
38
39
|
dbt_platform_helper/providers/ecs.py,sha256=XlQHYhZiLGrqR-1ZWMagGH2R2Hy7mCP6676eZL3YbNQ,3842
|
|
39
|
-
dbt_platform_helper/providers/files.py,sha256=
|
|
40
|
+
dbt_platform_helper/providers/files.py,sha256=o43HkXS7Bo2oop2W83EkFnTggX1hNr48LNALY3vh5xk,688
|
|
40
41
|
dbt_platform_helper/providers/io.py,sha256=JkWNIMZ_lcYQ6XvdVAuwtTZjoFIPJ-84zbH09nWLMdk,816
|
|
41
|
-
dbt_platform_helper/providers/load_balancers.py,sha256=
|
|
42
|
+
dbt_platform_helper/providers/load_balancers.py,sha256=Q2h4UT4KVA9E7q55Q4HGKxLlvMtpOXdR-KWQJSqTfm0,2746
|
|
42
43
|
dbt_platform_helper/providers/opensearch.py,sha256=tp64jTzHlutleqMpi2h_ZKH1iakZPJnUODebX6i2mfA,1335
|
|
43
|
-
dbt_platform_helper/providers/platform_config_schema.py,sha256=
|
|
44
|
+
dbt_platform_helper/providers/platform_config_schema.py,sha256=UKF3w9JGwWb8ZpkYHsglpabCTRtbx2gX-vs9gvfOyCg,26586
|
|
44
45
|
dbt_platform_helper/providers/redis.py,sha256=aj8pitxG9IKrMkL3fIYayQhcHPPzApdaXq0Uq_0yblg,1217
|
|
45
46
|
dbt_platform_helper/providers/secrets.py,sha256=6cYIR15dLdHmqxtWQpM6R71e0_Xgsg9V291HBG-0LV0,5272
|
|
47
|
+
dbt_platform_helper/providers/terraform_manifest.py,sha256=HWko7QVq2Fh-biZxTw8JR0KNK3f9NT23dHoKihWhMZ4,5103
|
|
46
48
|
dbt_platform_helper/providers/validation.py,sha256=d_YzJZVjGNO65pXcPIcFc9I-FRCESeEC7GvUzP8n-As,596
|
|
47
|
-
dbt_platform_helper/providers/vpc.py,sha256=
|
|
49
|
+
dbt_platform_helper/providers/vpc.py,sha256=EIjjD71K1Ry3V1jyaAkAjZwlwu_FSTn-AS7kiJFiipA,2953
|
|
48
50
|
dbt_platform_helper/providers/yaml_file.py,sha256=7jMLsDWetBBHWUvcaW652LaYUqICnf0n1H9eS6kNT5o,1990
|
|
49
51
|
dbt_platform_helper/templates/.copilot/config.yml,sha256=J_bA9sCtBdCPBRImpCBRnYvhQd4vpLYIXIU-lq9vbkA,158
|
|
50
52
|
dbt_platform_helper/templates/.copilot/image_build_run.sh,sha256=adYucYXEB-kAgZNjTQo0T6EIAY8sh_xCEvVhWKKQ8mw,164
|
|
@@ -65,19 +67,8 @@ dbt_platform_helper/templates/create-codebuild-role.json,sha256=THJgIKi8rWwDzhg5
|
|
|
65
67
|
dbt_platform_helper/templates/custom-codebuild-role-policy.json,sha256=8xyCofilPhV1Yjt3OnQLcI2kZ35mk2c07GcqYrKxuoI,1180
|
|
66
68
|
dbt_platform_helper/templates/env/manifest.yml,sha256=VCEj_y3jdfnPYi6gmyrwiEqzHYjpaJDANbvswmkiLA0,802
|
|
67
69
|
dbt_platform_helper/templates/env/terraform-overrides/cfn.patches.yml,sha256=cFlg69fvi9kzpz13ZAeY1asseZ6TuUex-6s76jG3oL4,259
|
|
68
|
-
dbt_platform_helper/templates/environment-pipelines/main.tf,sha256=
|
|
69
|
-
dbt_platform_helper/templates/environments/main.tf,sha256=
|
|
70
|
-
dbt_platform_helper/templates/pipelines/codebase/manifest.yml,sha256=Mby5ri_w0K9r3cJVdUN-c9adnu2cVvDgHpY4qvHggCE,1980
|
|
71
|
-
dbt_platform_helper/templates/pipelines/codebase/overrides/.gitignore,sha256=duFipE4GPjdkrYo-sO1jjCXdmSMoYNoFJLZ19lUKfL0,169
|
|
72
|
-
dbt_platform_helper/templates/pipelines/codebase/overrides/bin/override.ts,sha256=iD6Tsl8YTd3DW7NDk6ythkROmtX2OouU8DMSeWAqd_Y,227
|
|
73
|
-
dbt_platform_helper/templates/pipelines/codebase/overrides/buildspec.deploy.yml,sha256=neXXpwjCrNRPTOxec3m8nRIFZ0bI4zq2WaPHf5eSU_Y,1090
|
|
74
|
-
dbt_platform_helper/templates/pipelines/codebase/overrides/buildspec.image.yml,sha256=oHtRzH27IXJRyORWp7zvtjln-kTf3FgTdc9W_pBFBfU,1480
|
|
75
|
-
dbt_platform_helper/templates/pipelines/codebase/overrides/cdk.json,sha256=ZbvoQdcj_k9k1GAD9qHUQcDfQPbMcBPjJwt2mu_S6ho,339
|
|
76
|
-
dbt_platform_helper/templates/pipelines/codebase/overrides/package-lock.json,sha256=vUgOd3CbPQPGE5hoyMoUOiwvobVTAGdjpFaynVTyLh8,155563
|
|
77
|
-
dbt_platform_helper/templates/pipelines/codebase/overrides/package.json,sha256=XB0Pf63NSsGyowkPGTl1Nki167nRDXJdnxLSN3S_lQg,536
|
|
78
|
-
dbt_platform_helper/templates/pipelines/codebase/overrides/stack.ts,sha256=v9m6EziRgFnrhF7inbr1KtuOh75FeC054vaWMoAi-qg,21500
|
|
79
|
-
dbt_platform_helper/templates/pipelines/codebase/overrides/tsconfig.json,sha256=k6KabP-WwhFNgA1AFHNuonTEAnES6eR74jUuYUJEGOM,651
|
|
80
|
-
dbt_platform_helper/templates/pipelines/codebase/overrides/types.ts,sha256=8cp5xl_CIMH5TPvwlw9UBPKwfntcsu-lTAjbL5uylgw,1257
|
|
70
|
+
dbt_platform_helper/templates/environment-pipelines/main.tf,sha256=alycy6gYWvtOEVQPH5JxtHS7iGv0FTU-RQgBTe0kdts,1953
|
|
71
|
+
dbt_platform_helper/templates/environments/main.tf,sha256=0Zqi42IoqB25kWEbnBwoyxDM6-N4xRp2EYWgVJJSCWw,1537
|
|
81
72
|
dbt_platform_helper/templates/svc/maintenance_pages/default.html,sha256=OTZ-qwwSXu7PFbsgp4kppdm1lsg_iHK7FCFqhPnvrEs,741
|
|
82
73
|
dbt_platform_helper/templates/svc/maintenance_pages/dmas-migration.html,sha256=qvI6tHuI0UQbMBCuvPgK1a_zLANB6w7KVo9N5d8r-i0,829
|
|
83
74
|
dbt_platform_helper/templates/svc/maintenance_pages/migration.html,sha256=GiQsOiuaMFb7jG5_wU3V7BMcByHBl9fOBgrNf8quYlw,783
|
|
@@ -87,7 +78,7 @@ dbt_platform_helper/templates/svc/overrides/cfn.patches.yml,sha256=W7-d017akuUq9
|
|
|
87
78
|
dbt_platform_helper/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
88
79
|
dbt_platform_helper/utils/application.py,sha256=53xGrG8VBKrM4jyBKjuZZdwaYBbJ3PiznCCwlLieTKw,4804
|
|
89
80
|
dbt_platform_helper/utils/arn_parser.py,sha256=BaXzIxSOLdFmP_IfAxRq-0j-0Re1iCN7L4j2Zi5-CRQ,1304
|
|
90
|
-
dbt_platform_helper/utils/aws.py,sha256=
|
|
81
|
+
dbt_platform_helper/utils/aws.py,sha256=C18qEs8rekApGpJ39UslPvmpdFKhKX8Pybvz62YslQU,16918
|
|
91
82
|
dbt_platform_helper/utils/click.py,sha256=Fx4y4bbve1zypvog_sgK7tJtCocmzheoEFLBRv1lfdM,2943
|
|
92
83
|
dbt_platform_helper/utils/cloudfoundry.py,sha256=GnQ4fVLnDfOdNSrsJjI6ElZHqpgwINeoPn77cUH2UFY,484
|
|
93
84
|
dbt_platform_helper/utils/files.py,sha256=adQtG2E1IQHDKfeX06l6j1B7UTYukwBuR_uhJHaoi5M,1873
|
|
@@ -99,8 +90,8 @@ dbt_platform_helper/utils/template.py,sha256=g-Db-0I6a6diOHkgK1nYA0IxJSO4TRrjqOv
|
|
|
99
90
|
dbt_platform_helper/utils/validation.py,sha256=lmWVqRweswj-h7TPYP8lvluq8Qeu0htyKFbz2WUkPxI,1185
|
|
100
91
|
dbt_platform_helper/utils/versioning.py,sha256=XBZcyj8fW3xU6fzLTe1fMj2d3hKdQi8jUc-ZyPKJtwk,11428
|
|
101
92
|
platform_helper.py,sha256=bly3JkwbfwnWTZSZziu40dbgzQItsK-DIMMvL6ArFDY,1893
|
|
102
|
-
dbt_platform_helper-
|
|
103
|
-
dbt_platform_helper-
|
|
104
|
-
dbt_platform_helper-
|
|
105
|
-
dbt_platform_helper-
|
|
106
|
-
dbt_platform_helper-
|
|
93
|
+
dbt_platform_helper-13.0.1.dist-info/LICENSE,sha256=dP79lN73--7LMApnankTGLqDbImXg8iYFqWgnExGkGk,1090
|
|
94
|
+
dbt_platform_helper-13.0.1.dist-info/METADATA,sha256=gq_lKrCeIjZ9m99jFV0duel-_ZEcInBqYh-6c0AyPdU,3212
|
|
95
|
+
dbt_platform_helper-13.0.1.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
|
96
|
+
dbt_platform_helper-13.0.1.dist-info/entry_points.txt,sha256=QhbY8F434A-onsg0-FsdMd2U6HKh6Q7yCFFZrGUh5-M,67
|
|
97
|
+
dbt_platform_helper-13.0.1.dist-info/RECORD,,
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
# {% extra_header %}
|
|
2
|
-
# {% version_info %}
|
|
3
|
-
# This YAML file defines your pipeline: the source repository it tracks and the order of the environments to deploy to.
|
|
4
|
-
# For more info: https://aws.github.io/copilot-cli/docs/manifest/pipeline/
|
|
5
|
-
|
|
6
|
-
# The name of the pipeline.
|
|
7
|
-
name: {{ codebase.name }}
|
|
8
|
-
|
|
9
|
-
# The version of the schema used in this template.
|
|
10
|
-
version: 1
|
|
11
|
-
|
|
12
|
-
# This section defines your source, changes to which trigger your pipeline.
|
|
13
|
-
source:
|
|
14
|
-
# The name of the provider that is used to store the source artifacts.
|
|
15
|
-
# (i.e. GitHub, Bitbucket, CodeCommit)
|
|
16
|
-
provider: GitHub
|
|
17
|
-
# Additional properties that further specify the location of the artifacts.
|
|
18
|
-
properties:
|
|
19
|
-
branch: main
|
|
20
|
-
repository: https://github.com/{{ codebase.repository }}
|
|
21
|
-
# Optional: specify the name of an existing CodeStar Connections connection.
|
|
22
|
-
connection_name: {{ app_name }}
|
|
23
|
-
|
|
24
|
-
{% if additional_ecr_arn %}
|
|
25
|
-
build:
|
|
26
|
-
additional_policy:
|
|
27
|
-
# Policy to enable push to public repo
|
|
28
|
-
PolicyDocument:
|
|
29
|
-
Version: 2012-10-17
|
|
30
|
-
Statement:
|
|
31
|
-
- Effect: Allow
|
|
32
|
-
Action:
|
|
33
|
-
- ecr:GetAuthorizationToken
|
|
34
|
-
Resource: "arn:aws:codebuild:eu-west-2:{{ account_id }}:report-group/pipeline-{{ app_name }}-*"
|
|
35
|
-
- Effect: Allow
|
|
36
|
-
Action:
|
|
37
|
-
- "ecr-public:*"
|
|
38
|
-
Resource: "{{ additional_ecr_arn }}"
|
|
39
|
-
- Effect: Allow
|
|
40
|
-
Action:
|
|
41
|
-
- "ecr-public:GetAuthorizationToken"
|
|
42
|
-
- "sts:GetServiceBearerToken"
|
|
43
|
-
Resource: "*"
|
|
44
|
-
{% endif %}
|
|
45
|
-
|
|
46
|
-
# This section defines the order of the environments your pipeline will deploy to.
|
|
47
|
-
stages:
|
|
48
|
-
{% for environment in environments -%}
|
|
49
|
-
- # The name of the environment.
|
|
50
|
-
name: {{ environment.name }}
|
|
51
|
-
# Optional: flag for manual approval action before deployment.
|
|
52
|
-
{% if not environment.requires_approval %}# {% endif %}requires_approval: true
|
|
53
|
-
# Optional: use test commands to validate this stage of your build.
|
|
54
|
-
# test_commands: [echo 'running tests', make test]
|
|
55
|
-
|
|
56
|
-
{% endfor %}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
version: 0.2
|
|
2
|
-
env:
|
|
3
|
-
git-credential-helper: yes
|
|
4
|
-
parameter-store:
|
|
5
|
-
SLACK_CHANNEL_ID: /codebuild/slack_oauth_channel
|
|
6
|
-
SLACK_TOKEN: /codebuild/slack_oauth_token
|
|
7
|
-
variables:
|
|
8
|
-
COLOR: false
|
|
9
|
-
CI: true
|
|
10
|
-
phases:
|
|
11
|
-
build:
|
|
12
|
-
commands:
|
|
13
|
-
- echo "Copilot environment is ${COPILOT_ENVIRONMENT}"
|
|
14
|
-
- /work/cli deploy --send-notifications
|
|
15
|
-
|
|
16
|
-
post_build:
|
|
17
|
-
commands:
|
|
18
|
-
- |
|
|
19
|
-
if [ "${CODEBUILD_BUILD_SUCCEEDING}" != "1" ]; then
|
|
20
|
-
BUILD_ID_PREFIX=$(echo $CODEBUILD_BUILD_ID | cut -d':' -f1)
|
|
21
|
-
echo "BUILD_ID_PREFIX - ${BUILD_ID_PREFIX}"
|
|
22
|
-
|
|
23
|
-
echo -e "\nInstalling dependencies"
|
|
24
|
-
pip install dbt-platform-helper
|
|
25
|
-
|
|
26
|
-
MESSAGE=":no_entry::construction: Build failure in codebuild project: <https://eu-west-2.console.aws.amazon.com/codesuite/codebuild/${AWS_ACCOUNT_ID}/projects/${BUILD_ID_PREFIX}/build/${CODEBUILD_BUILD_ID}/?region=eu-west-2|${BUILD_ID_PREFIX} - build ${CODEBUILD_BUILD_NUMBER}>"
|
|
27
|
-
|
|
28
|
-
platform-helper notify add-comment "${SLACK_CHANNEL_ID}" "${SLACK_TOKEN}" "" "${MESSAGE}"
|
|
29
|
-
fi
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
version: 0.2
|
|
2
|
-
|
|
3
|
-
env:
|
|
4
|
-
parameter-store:
|
|
5
|
-
SLACK_CHANNEL_ID: /codebuild/slack_oauth_channel
|
|
6
|
-
SLACK_TOKEN: /codebuild/slack_oauth_token
|
|
7
|
-
|
|
8
|
-
phases:
|
|
9
|
-
install:
|
|
10
|
-
commands:
|
|
11
|
-
- >
|
|
12
|
-
if [ -f .copilot/phases/install.sh ]; then
|
|
13
|
-
bash .copilot/phases/install.sh;
|
|
14
|
-
fi
|
|
15
|
-
|
|
16
|
-
pre_build:
|
|
17
|
-
commands:
|
|
18
|
-
- >
|
|
19
|
-
if [ -f .copilot/phases/pre_build.sh ]; then
|
|
20
|
-
bash .copilot/phases/pre_build.sh;
|
|
21
|
-
fi
|
|
22
|
-
|
|
23
|
-
build:
|
|
24
|
-
commands:
|
|
25
|
-
- >
|
|
26
|
-
if [ -f .copilot/phases/build.sh ]; then
|
|
27
|
-
bash .copilot/phases/build.sh;
|
|
28
|
-
fi
|
|
29
|
-
- /work/cli build --publish --send-notifications
|
|
30
|
-
|
|
31
|
-
post_build:
|
|
32
|
-
commands:
|
|
33
|
-
- >
|
|
34
|
-
if [ -f .copilot/phases/post_build.sh ]; then
|
|
35
|
-
bash .copilot/phases/post_build.sh;
|
|
36
|
-
fi
|
|
37
|
-
|
|
38
|
-
if [ "${CODEBUILD_BUILD_SUCCEEDING}" != "1" ]; then
|
|
39
|
-
BUILD_ID_PREFIX=$(echo $CODEBUILD_BUILD_ID | cut -d':' -f1)
|
|
40
|
-
echo "BUILD_ID_PREFIX - ${BUILD_ID_PREFIX}"
|
|
41
|
-
|
|
42
|
-
echo -e "\nInstalling dependencies"
|
|
43
|
-
pip install dbt-platform-helper
|
|
44
|
-
|
|
45
|
-
MESSAGE=":no_entry::building_construction: Image build failure in codebuild project: <https://eu-west-2.console.aws.amazon.com/codesuite/codebuild/${AWS_ACCOUNT_ID}/projects/${BUILD_ID_PREFIX}/build/${CODEBUILD_BUILD_ID}/?region=eu-west-2|${BUILD_ID_PREFIX} - build ${CODEBUILD_BUILD_NUMBER}>"
|
|
46
|
-
|
|
47
|
-
platform-helper notify add-comment "${SLACK_CHANNEL_ID}" "${SLACK_TOKEN}" "" "${MESSAGE}"
|
|
48
|
-
fi
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"app": "npx ts-node --prefer-ts-exts bin/override.ts",
|
|
3
|
-
"versionReporting": false,
|
|
4
|
-
"watch": {
|
|
5
|
-
"include": [
|
|
6
|
-
"**"
|
|
7
|
-
],
|
|
8
|
-
"exclude": [
|
|
9
|
-
"README.md",
|
|
10
|
-
"cdk*.json",
|
|
11
|
-
"**/*.d.ts",
|
|
12
|
-
"**/*.js",
|
|
13
|
-
"tsconfig.json",
|
|
14
|
-
"package*.json",
|
|
15
|
-
"yarn.lock",
|
|
16
|
-
"node_modules",
|
|
17
|
-
"test"
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
}
|