dbt-platform-helper 12.4.0__py3-none-any.whl → 12.5.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.

Files changed (32) hide show
  1. dbt_platform_helper/COMMANDS.md +0 -3
  2. dbt_platform_helper/commands/config.py +2 -2
  3. dbt_platform_helper/commands/copilot.py +47 -28
  4. dbt_platform_helper/commands/environment.py +16 -178
  5. dbt_platform_helper/commands/pipeline.py +5 -34
  6. dbt_platform_helper/constants.py +12 -1
  7. dbt_platform_helper/domain/config_validator.py +242 -0
  8. dbt_platform_helper/domain/copilot_environment.py +204 -0
  9. dbt_platform_helper/domain/database_copy.py +7 -5
  10. dbt_platform_helper/domain/maintenance_page.py +1 -1
  11. dbt_platform_helper/domain/terraform_environment.py +53 -0
  12. dbt_platform_helper/jinja2_tags.py +1 -1
  13. dbt_platform_helper/providers/cache.py +77 -0
  14. dbt_platform_helper/providers/cloudformation.py +0 -1
  15. dbt_platform_helper/providers/config.py +90 -0
  16. dbt_platform_helper/providers/opensearch.py +36 -0
  17. dbt_platform_helper/providers/platform_config_schema.py +667 -0
  18. dbt_platform_helper/providers/redis.py +34 -0
  19. dbt_platform_helper/providers/yaml_file.py +83 -0
  20. dbt_platform_helper/templates/addons/svc/s3-cross-account-policy.yml +67 -0
  21. dbt_platform_helper/utils/aws.py +1 -59
  22. dbt_platform_helper/utils/files.py +0 -106
  23. dbt_platform_helper/utils/template.py +10 -0
  24. dbt_platform_helper/utils/validation.py +5 -889
  25. {dbt_platform_helper-12.4.0.dist-info → dbt_platform_helper-12.5.0.dist-info}/METADATA +2 -2
  26. {dbt_platform_helper-12.4.0.dist-info → dbt_platform_helper-12.5.0.dist-info}/RECORD +29 -22
  27. {dbt_platform_helper-12.4.0.dist-info → dbt_platform_helper-12.5.0.dist-info}/WHEEL +1 -1
  28. dbt_platform_helper/templates/pipelines/environments/buildspec.yml +0 -80
  29. dbt_platform_helper/templates/pipelines/environments/manifest.yml +0 -48
  30. dbt_platform_helper/templates/pipelines/environments/overrides/cfn.patches.yml +0 -21
  31. {dbt_platform_helper-12.4.0.dist-info → dbt_platform_helper-12.5.0.dist-info}/LICENSE +0 -0
  32. {dbt_platform_helper-12.4.0.dist-info → dbt_platform_helper-12.5.0.dist-info}/entry_points.txt +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: dbt-platform-helper
3
- Version: 12.4.0
3
+ Version: 12.5.0
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,4 +1,4 @@
1
- dbt_platform_helper/COMMANDS.md,sha256=6VGkyKa_AB1adSlyhWIKrfDckq2n-xxqnBbBpgO5bnc,22207
1
+ dbt_platform_helper/COMMANDS.md,sha256=zLOCEb31pbTRp9Q6QRsSDwdwH5imnCUw3Ey87igqoBQ,22028
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
@@ -6,32 +6,41 @@ dbt_platform_helper/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NM
6
6
  dbt_platform_helper/commands/application.py,sha256=eVwCaYuwBlk0zx0xfA6fW7b-S1pl8gkyT1lHKeeh2R0,10147
7
7
  dbt_platform_helper/commands/codebase.py,sha256=KB8irKyFtb6pKn5cQ0MmTywGW7Vd8SSbWjT2mRnh3JA,2270
8
8
  dbt_platform_helper/commands/conduit.py,sha256=KqRWiirl5Xl7qcJXOAsirbTLlV1XquOjddsopuj0Kp4,2272
9
- dbt_platform_helper/commands/config.py,sha256=LKHPBR0xCPiX_oR2Gtl0_KO9WqABNDF5w_dI7WRxhWk,12117
10
- dbt_platform_helper/commands/copilot.py,sha256=XizScFxONNB3RLecRfEgCv--TwQ1j2rCUKGCx0nPq4I,12883
9
+ dbt_platform_helper/commands/config.py,sha256=vIJh1piAqxRgxr4t68okPLfo-inkPiSoRNUFGPQBChg,12129
10
+ dbt_platform_helper/commands/copilot.py,sha256=5UqY1LOCjfsBffpVRa2mHPs8Tc7SmnjcQHtS0XMn8-c,13562
11
11
  dbt_platform_helper/commands/database.py,sha256=aG3zcMHL5PE96b7LSAu0FGCbgcycQej3AGRcd-bpXUo,4115
12
- dbt_platform_helper/commands/environment.py,sha256=VNIzuCM6RT-jVMk3Km0d88NEhrkTEWNqscEypVwLSWU,9294
12
+ dbt_platform_helper/commands/environment.py,sha256=fSd0NmwKVndjtQ6EmV7f8YOSTNqMRQ6oQoLXnUVoRA0,3307
13
13
  dbt_platform_helper/commands/generate.py,sha256=YLCPb-xcPapGcsLn-7d1Am7BpGp5l0iecIDTOdNGjHk,722
14
14
  dbt_platform_helper/commands/notify.py,sha256=kVJ0s78QMiaEWPVKu_bbMko4DW2uJy2fu8-HNJsglyk,3748
15
- dbt_platform_helper/commands/pipeline.py,sha256=_52bDSDa8DoyOA4VFxFJhwaiKCPHKqPtK2LWDLFaKlA,9452
15
+ dbt_platform_helper/commands/pipeline.py,sha256=nep2xgImnZ9CFzqnMIrsJACc7dzIrN8AoO0jR_bZWso,8437
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=HVaaO7hlQB41GrBBxcgk7hHie9tKbeYhJc-cRyYuIE0,453
18
+ dbt_platform_helper/constants.py,sha256=GD1pAFIpcKj1f4be-XueHei7_bqYjdW7cEQxz68XKV4,919
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
21
  dbt_platform_helper/domain/codebase.py,sha256=vs25ytD0iKwfuX-EoYHwG6qiZAmfvKyQiYT9BeWZ_s4,9688
22
22
  dbt_platform_helper/domain/conduit.py,sha256=mvjDzxh-SCUCY5qGL73kG8TT7YqeQR8XtNcHx26SW2w,4344
23
- dbt_platform_helper/domain/database_copy.py,sha256=m25FA6DkF_yG3lVcbxBEleYxwHA85hQrB5fFeIg6adM,8988
24
- dbt_platform_helper/domain/maintenance_page.py,sha256=JN1ksJ9viZ8SjPkO48y_GqrqTgR5B3T1aiye0XlUp4I,15740
25
- dbt_platform_helper/jinja2_tags.py,sha256=jFyN_Sxmko1GSfvrqRIGQ80CCW8EwlCV3su0ahJPfoE,541
23
+ dbt_platform_helper/domain/config_validator.py,sha256=7te6L6zJrb-soVB5TKm4UwJyhCdONmNvE0TbqXb5U60,10177
24
+ dbt_platform_helper/domain/copilot_environment.py,sha256=m7m9AUiVwJfDREyh3F9Wv8slaF_EzOL2Lkmk1ZK0X7Q,8107
25
+ dbt_platform_helper/domain/database_copy.py,sha256=26gIZyVqd7foHFETkn3LAfyEeMMXbX-wautzlh7aFF4,9157
26
+ dbt_platform_helper/domain/maintenance_page.py,sha256=LN-1qnU9oprYvLbV_pHOWOG_QsIluGpYPIfU1E4La-A,15742
27
+ dbt_platform_helper/domain/terraform_environment.py,sha256=bXCVL2C9iUxrzZKGQP_jW6S-iRIVUf-iEIABhN2BoTo,2048
28
+ dbt_platform_helper/jinja2_tags.py,sha256=hKG6RS3zlxJHQ-Op9r2U2-MhWp4s3lZir4Ihe24ApJ0,540
26
29
  dbt_platform_helper/platform_exception.py,sha256=bheZV9lqGvrCVTNT92349dVntNDEDWTEwciZgC83WzE,187
27
30
  dbt_platform_helper/providers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
28
31
  dbt_platform_helper/providers/aws.py,sha256=KHgySe6cwEw1wePjw6DL7uSyZRk3DN_Aqqi8KnRoB3M,1208
29
- dbt_platform_helper/providers/cloudformation.py,sha256=YmeofMMxh9hzhU4Osa1vR41s18jNXzsZdEfpQUk1Lc4,4976
32
+ dbt_platform_helper/providers/cache.py,sha256=vXjOKtzDgcaGy2mtP9Rr2wQKuF7DmYTIGIQ1wsSzfH0,2624
33
+ dbt_platform_helper/providers/cloudformation.py,sha256=AMUuhHqjjyYwraFKdkVLgcHs7XZShNHkQFZWHBOMeGg,4877
34
+ dbt_platform_helper/providers/config.py,sha256=g9k7VMq3SZs0sxoM7fgMT_Jvv7r_ew8hLM7dnDwGNeU,3102
30
35
  dbt_platform_helper/providers/copilot.py,sha256=2BkQXn17GC1oGfCSCXXapTqT5OEhpEBeNkQ33g-U6wU,5245
31
36
  dbt_platform_helper/providers/ecs.py,sha256=XlQHYhZiLGrqR-1ZWMagGH2R2Hy7mCP6676eZL3YbNQ,3842
32
37
  dbt_platform_helper/providers/load_balancers.py,sha256=0tPkuQ_jWfan44HrBA5EMLqrZaYQl-Lw5PavZ1a1iag,1615
38
+ dbt_platform_helper/providers/opensearch.py,sha256=tp64jTzHlutleqMpi2h_ZKH1iakZPJnUODebX6i2mfA,1335
39
+ dbt_platform_helper/providers/platform_config_schema.py,sha256=vKyk32tMJU99RZMnpqV9phS5-8N4tduSPZJOJBObYss,26513
40
+ dbt_platform_helper/providers/redis.py,sha256=aj8pitxG9IKrMkL3fIYayQhcHPPzApdaXq0Uq_0yblg,1217
33
41
  dbt_platform_helper/providers/secrets.py,sha256=6cYIR15dLdHmqxtWQpM6R71e0_Xgsg9V291HBG-0LV0,5272
34
42
  dbt_platform_helper/providers/validation.py,sha256=d_YzJZVjGNO65pXcPIcFc9I-FRCESeEC7GvUzP8n-As,596
43
+ dbt_platform_helper/providers/yaml_file.py,sha256=ODu_MJxVz6Bta9MmS2IDfiSYxxQhmmwNM0u6B3Tsfd4,2436
35
44
  dbt_platform_helper/templates/.copilot/config.yml,sha256=J_bA9sCtBdCPBRImpCBRnYvhQd4vpLYIXIU-lq9vbkA,158
36
45
  dbt_platform_helper/templates/.copilot/image_build_run.sh,sha256=adYucYXEB-kAgZNjTQo0T6EIAY8sh_xCEvVhWKKQ8mw,164
37
46
  dbt_platform_helper/templates/.copilot/phases/build.sh,sha256=umKXePcRvx4XyrRY0fAWIyYFtNjqBI2L8vIJk-V7C60,121
@@ -43,6 +52,7 @@ dbt_platform_helper/templates/addon-instructions.txt,sha256=Dhd1xDbFKnX7xjfCz0W5
43
52
  dbt_platform_helper/templates/addons/README.md,sha256=UdVydY2ocm1OLKecZ8MAiXet3rKsMiq0PpBrmi0Xrns,412
44
53
  dbt_platform_helper/templates/addons/svc/appconfig-ipfilter.yml,sha256=nBIXV4um4jIvXs3Q5QycHqVpJODK5yg_M-xJT6AOBKE,977
45
54
  dbt_platform_helper/templates/addons/svc/prometheus-policy.yml,sha256=PwkGwri6IUuullXjEu17RZWYdoJR45Eb7BdUb2_AdOA,1074
55
+ dbt_platform_helper/templates/addons/svc/s3-cross-account-policy.yml,sha256=tZQ5XNIMPxv55Ilu0fIcc1I57dzDaQIQImhfsrijpQY,2211
46
56
  dbt_platform_helper/templates/addons/svc/s3-policy.yml,sha256=jwTpFNmm8CaP0c6VXXBJvEm_YLA17Nf-S1xyU1ahLJ8,2164
47
57
  dbt_platform_helper/templates/addons/svc/subscription-filter.yml,sha256=irD0AjPc38xTRzEday2Ko-KrjK4hPlyLxUFvUITjMkU,914
48
58
  dbt_platform_helper/templates/ci-codebuild-role-policy.json,sha256=hNE-wGrraWxsJAWE9ahtL7Bkw7PEz-CXBQnM3DR70vQ,1836
@@ -63,9 +73,6 @@ dbt_platform_helper/templates/pipelines/codebase/overrides/package.json,sha256=X
63
73
  dbt_platform_helper/templates/pipelines/codebase/overrides/stack.ts,sha256=v9m6EziRgFnrhF7inbr1KtuOh75FeC054vaWMoAi-qg,21500
64
74
  dbt_platform_helper/templates/pipelines/codebase/overrides/tsconfig.json,sha256=k6KabP-WwhFNgA1AFHNuonTEAnES6eR74jUuYUJEGOM,651
65
75
  dbt_platform_helper/templates/pipelines/codebase/overrides/types.ts,sha256=8cp5xl_CIMH5TPvwlw9UBPKwfntcsu-lTAjbL5uylgw,1257
66
- dbt_platform_helper/templates/pipelines/environments/buildspec.yml,sha256=hTCUhSfrnTUMOpUo8EjQmvit2aX7J0cKNeqV2DChaA0,3365
67
- dbt_platform_helper/templates/pipelines/environments/manifest.yml,sha256=0-6uGxjm8Qz1l8EozNHB5JY7UFzWZicHK_AvtFMPfTo,1664
68
- dbt_platform_helper/templates/pipelines/environments/overrides/cfn.patches.yml,sha256=VLjm3Dz4clUz44B5RSQy7mu1sRzm7Yf2S_TSnor_b_k,638
69
76
  dbt_platform_helper/templates/svc/maintenance_pages/default.html,sha256=OTZ-qwwSXu7PFbsgp4kppdm1lsg_iHK7FCFqhPnvrEs,741
70
77
  dbt_platform_helper/templates/svc/maintenance_pages/dmas-migration.html,sha256=qvI6tHuI0UQbMBCuvPgK1a_zLANB6w7KVo9N5d8r-i0,829
71
78
  dbt_platform_helper/templates/svc/maintenance_pages/migration.html,sha256=GiQsOiuaMFb7jG5_wU3V7BMcByHBl9fOBgrNf8quYlw,783
@@ -75,20 +82,20 @@ dbt_platform_helper/templates/svc/overrides/cfn.patches.yml,sha256=W7-d017akuUq9
75
82
  dbt_platform_helper/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
76
83
  dbt_platform_helper/utils/application.py,sha256=ugY3nbUHRNFvJgaD4446EdSvIyILEN6ouuuk7eoyXe8,4538
77
84
  dbt_platform_helper/utils/arn_parser.py,sha256=BaXzIxSOLdFmP_IfAxRq-0j-0Re1iCN7L4j2Zi5-CRQ,1304
78
- dbt_platform_helper/utils/aws.py,sha256=sO5EHTbjzOYc0aPmpRupbcACwIBCHz8YUZfqz0vXydI,19771
85
+ dbt_platform_helper/utils/aws.py,sha256=v85AlI-4rcI5OiRlmFtZfLdlH2iY-sL_9Vk62XSdDJQ,18096
79
86
  dbt_platform_helper/utils/click.py,sha256=Fx4y4bbve1zypvog_sgK7tJtCocmzheoEFLBRv1lfdM,2943
80
87
  dbt_platform_helper/utils/cloudfoundry.py,sha256=GnQ4fVLnDfOdNSrsJjI6ElZHqpgwINeoPn77cUH2UFY,484
81
- dbt_platform_helper/utils/files.py,sha256=pa5uwwrEFIAgXZUyH2KEr2Yiu6bKuV4EMlhn9BcUMsY,5296
88
+ dbt_platform_helper/utils/files.py,sha256=zvN4P8-M9C1lkxBmn-S9pfwPqsarAVhomZu8Jrf46Yg,2132
82
89
  dbt_platform_helper/utils/git.py,sha256=7JGZMaI8-cU6-GjXIXjOlsYfKu_RppLOGyAicBd4n_8,704
83
90
  dbt_platform_helper/utils/manifests.py,sha256=ji3UYHCxq9tTpkm4MlRa2y0-JOYYqq1pWZ2h_zpj0UU,507
84
91
  dbt_platform_helper/utils/messages.py,sha256=aLx6s9utt__IqlDdeIYq4n82ERwludu2Zfqy0Q2t-x8,115
85
92
  dbt_platform_helper/utils/platform_config.py,sha256=2RfIxBAT5fv7WR4YuP3yomUK7sKZFL77xevuHnUALdg,676
86
- dbt_platform_helper/utils/template.py,sha256=raRx4QUCVJtKfvJK08Egg6gwWcs3r3V4nPWcJW4xNhA,574
87
- dbt_platform_helper/utils/validation.py,sha256=ANGIA3k2_ATyZsPs7iqnXMNVjZC6o-rIbONxO9QZ8JU,30701
93
+ dbt_platform_helper/utils/template.py,sha256=g-Db-0I6a6diOHkgK1nYA0IxJSO4TRrjqOvlyeOR32o,950
94
+ dbt_platform_helper/utils/validation.py,sha256=lmWVqRweswj-h7TPYP8lvluq8Qeu0htyKFbz2WUkPxI,1185
88
95
  dbt_platform_helper/utils/versioning.py,sha256=rLCofLHPXoyc3v9ArDKcjW902p-UX6GCn8n7cjg5I-U,10918
89
96
  platform_helper.py,sha256=bly3JkwbfwnWTZSZziu40dbgzQItsK-DIMMvL6ArFDY,1893
90
- dbt_platform_helper-12.4.0.dist-info/LICENSE,sha256=dP79lN73--7LMApnankTGLqDbImXg8iYFqWgnExGkGk,1090
91
- dbt_platform_helper-12.4.0.dist-info/METADATA,sha256=UuLXRBbntAkchMbR3jEaD2FCze0dH-3i54tIcpG49mo,3212
92
- dbt_platform_helper-12.4.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
93
- dbt_platform_helper-12.4.0.dist-info/entry_points.txt,sha256=QhbY8F434A-onsg0-FsdMd2U6HKh6Q7yCFFZrGUh5-M,67
94
- dbt_platform_helper-12.4.0.dist-info/RECORD,,
97
+ dbt_platform_helper-12.5.0.dist-info/LICENSE,sha256=dP79lN73--7LMApnankTGLqDbImXg8iYFqWgnExGkGk,1090
98
+ dbt_platform_helper-12.5.0.dist-info/METADATA,sha256=QmnpEwvlPv34Mb5xPnTIy91UdvEmet4NeocJVMMAk2o,3212
99
+ dbt_platform_helper-12.5.0.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
100
+ dbt_platform_helper-12.5.0.dist-info/entry_points.txt,sha256=QhbY8F434A-onsg0-FsdMd2U6HKh6Q7yCFFZrGUh5-M,67
101
+ dbt_platform_helper-12.5.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.9.1
2
+ Generator: poetry-core 2.0.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,80 +0,0 @@
1
- # {% extra_header %}
2
- # {% version_info %}
3
- # Buildspec runs in the build stage of your environment pipeline to generate the environment CloudFormation stack config.
4
- version: 0.2
5
- env:
6
- variables:
7
- DYFF_VERSION: 1.5.8
8
- phases:
9
- install:
10
- commands:
11
- - cd $CODEBUILD_SRC_DIR
12
- - |
13
- if [ ! -f .copilot-version ]; then
14
- echo "Cannot find .copilot-version file"
15
- exit 1
16
- fi
17
- - COPILOT_VERSION=$(cat .copilot-version)
18
- # Install pyyaml and dbt-platform-helper
19
- - pip install PyYAML dbt-platform-helper
20
- # Reinstall if we require a different version to the latest
21
- - CURRENT_PLATFORM_HELPER_VERSION=$(platform-helper --version)
22
- - export PLATFORM_HELPER_VERSION=$(platform-helper version get-platform-helper-for-project)
23
- - |
24
- if [ ! "${PLATFORM_HELPER_VERSION}" == "${CURRENT_PLATFORM_HELPER_VERSION}" ]
25
- then
26
- pip uninstall dbt-platform-helper
27
- pip install dbt-platform-helper==$PLATFORM_HELPER_VERSION
28
- fi
29
- - mkdir ./build-tools
30
- - cd ./build-tools
31
- # Install copilot
32
- - wget -q "https://ecs-cli-v2-release.s3.amazonaws.com/copilot-linux-v${COPILOT_VERSION}"
33
- - mv "./copilot-linux-v${COPILOT_VERSION}" ./copilot
34
- - chmod +x ./copilot
35
- # Install dyff - yaml differ
36
- - wget -q "https://github.com/homeport/dyff/releases/download/v${DYFF_VERSION}/dyff_${DYFF_VERSION}_linux_amd64.tar.gz"
37
- - tar -zxvf "dyff_${DYFF_VERSION}_linux_amd64.tar.gz"
38
- - chmod +x ./dyff
39
- build:
40
- commands:
41
- - cd $CODEBUILD_SRC_DIR
42
- - cp -r copilot/ current-copilot/
43
- - platform-helper copilot make-addons
44
- - >
45
- for FILE in $(ls copilot/**/addons/*.yml); do
46
- ./build-tools/dyff between --omit-header $FILE current-$FILE >> ./build-tools/file-differences
47
- done;
48
- - |
49
- if [[ "$(cat ./build-tools/file-differences)" = *[![:space:]]* ]]; then
50
- echo 'Changes are introduced with version ${PLATFORM_HELPER_VERSION} of platform-helper:'
51
- echo
52
- for FILE in $(ls copilot/**/addons/*.yml); do
53
- echo "Changes in $FILE:"
54
- ./build-tools/dyff between --omit-header $FILE current-$FILE
55
- done;
56
- echo
57
- echo 'Ensure you are running version ${PLATFORM_HELPER_VERSION} with pip install dbt-platform-helper==${PLATFORM_HELPER_VERSION}'
58
- echo 'And run platform-helper copilot make-addons to regenerate your addons templates'
59
- exit 1
60
- fi
61
- post_build:
62
- commands:
63
- - git checkout -- .
64
- - export COLOR="false"
65
- - export CI="true"
66
- - pipeline=$(cat $CODEBUILD_SRC_DIR/copilot/pipelines/environments/manifest.yml | python -c 'import sys, json, yaml; print(json.dumps(yaml.safe_load(sys.stdin.read())))')
67
- - stages=$(echo $pipeline | jq -r '.stages[].name')
68
- # Generate the cloudformation templates.
69
- - >
70
- for env in $stages; do
71
- ./build-tools/copilot env package -n $env --output-dir './infrastructure' --upload-assets --force;
72
- if [ $? -ne 0 ]; then
73
- echo "Cloudformation stack and config files were not generated. Please check build logs to see if there was a manifest validation error." 1>&2;
74
- exit 1;
75
- fi
76
- done;
77
- - ls -lah ./infrastructure
78
- artifacts:
79
- files:
80
- - "infrastructure/*"
@@ -1,48 +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: environments
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/{{ git_repo }}
21
- connection_name: {{ app_name }}
22
-
23
- build:
24
- additional_policy:
25
- PolicyDocument:
26
- Version: "2012-10-17"
27
- Statement:
28
- - Effect: Allow
29
- Action:
30
- - iam:ListAccountAliases
31
- Resource: '*'
32
-
33
- # This section defines the order of the environments your pipeline will deploy to.
34
- stages:
35
- {% for name, environment in pipeline_environments.items() -%}
36
- - # The name of the environment.
37
- name: {{ name }}
38
- deployments:
39
- deploy-env:
40
- template_path: infrastructure/{{ name }}.env.yml
41
- template_config: infrastructure/{{ name }}.env.params.json
42
- stack_name: {{ app_name }}-{{ name }}
43
- # Optional: flag for manual approval action before deployment.
44
- {% if not environment.requires_approval %}# {% endif %}requires_approval: true
45
- # Optional: use test commands to validate this stage of your build.
46
- # test_commands: [echo 'running tests', make test]
47
-
48
- {% endfor %}
@@ -1,21 +0,0 @@
1
- # {% extra_header %}
2
- # {% version_info %}
3
- # Give the source stage a more meaningful name
4
- - op: replace
5
- path: /Resources/Pipeline/Properties/Stages/0/Actions/0/Name
6
- value: DeployCodebase
7
-
8
- # Add git metadata to the source output artefact
9
- - op: add
10
- path: /Resources/Pipeline/Properties/Stages/0/Actions/0/Configuration/OutputArtifactFormat
11
- value: CODEBUILD_CLONE_REF
12
-
13
- # Add codestar permissions to codebuild role
14
- - op: add
15
- path: /Resources/BuildProjectPolicy/Properties/PolicyDocument/Statement/-
16
- value:
17
- Effect: Allow
18
- Action:
19
- - codestar-connections:UseConnection
20
- Resource:
21
- - {{ codestar_connection_arn }}