dbt-platform-helper 15.10.0__py3-none-any.whl → 15.12.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 (27) hide show
  1. dbt_platform_helper/COMMANDS.md +0 -91
  2. dbt_platform_helper/commands/internal.py +114 -0
  3. dbt_platform_helper/constants.py +17 -0
  4. dbt_platform_helper/domain/conduit.py +13 -5
  5. dbt_platform_helper/domain/config.py +30 -1
  6. dbt_platform_helper/domain/maintenance_page.py +10 -8
  7. dbt_platform_helper/domain/service.py +274 -66
  8. dbt_platform_helper/domain/update_alb_rules.py +346 -0
  9. dbt_platform_helper/entities/platform_config_schema.py +0 -3
  10. dbt_platform_helper/entities/service.py +139 -13
  11. dbt_platform_helper/providers/aws/exceptions.py +5 -0
  12. dbt_platform_helper/providers/aws/sso_auth.py +14 -0
  13. dbt_platform_helper/providers/config.py +0 -11
  14. dbt_platform_helper/providers/ecs.py +104 -11
  15. dbt_platform_helper/providers/load_balancers.py +119 -14
  16. dbt_platform_helper/providers/logs.py +57 -0
  17. dbt_platform_helper/providers/s3.py +21 -0
  18. dbt_platform_helper/providers/terraform_manifest.py +3 -5
  19. dbt_platform_helper/providers/yaml_file.py +13 -5
  20. dbt_platform_helper/utils/application.py +66 -16
  21. {dbt_platform_helper-15.10.0.dist-info → dbt_platform_helper-15.12.0.dist-info}/METADATA +1 -1
  22. {dbt_platform_helper-15.10.0.dist-info → dbt_platform_helper-15.12.0.dist-info}/RECORD +26 -24
  23. platform_helper.py +0 -2
  24. dbt_platform_helper/commands/service.py +0 -53
  25. {dbt_platform_helper-15.10.0.dist-info → dbt_platform_helper-15.12.0.dist-info}/WHEEL +0 -0
  26. {dbt_platform_helper-15.10.0.dist-info → dbt_platform_helper-15.12.0.dist-info}/entry_points.txt +0 -0
  27. {dbt_platform_helper-15.10.0.dist-info → dbt_platform_helper-15.12.0.dist-info}/licenses/LICENSE +0 -0
@@ -1,4 +1,4 @@
1
- dbt_platform_helper/COMMANDS.md,sha256=LPF1aREzwiYsoCnWRyglezdvRfJfMy3M7IIzOkO9trI,26014
1
+ dbt_platform_helper/COMMANDS.md,sha256=8TJM8M7hUymuRVGI0jsIJFD_ONTU8sT1EyywwO44WlU,23929
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/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -10,64 +10,66 @@ dbt_platform_helper/commands/copilot.py,sha256=L9UUuqD62q0aFrTTEUla3A1WJBz-vFBfV
10
10
  dbt_platform_helper/commands/database.py,sha256=2RJZEzaSqcNtDG1M2mZw-nB6agAd3GNAJsg2pjFF7vc,4407
11
11
  dbt_platform_helper/commands/environment.py,sha256=zexiry6_dbOmD8w2lBrgdcFQKAG7XyJg9pvNtwtgPRk,3616
12
12
  dbt_platform_helper/commands/generate.py,sha256=4M0ZiGN2w-bwgPMxeItFfT6vA7sOMjuceHEN7RAYkhc,735
13
- dbt_platform_helper/commands/internal.py,sha256=IzPEyie6lmiNATQ3sYDvDgvqJz__Eaz-3VzUaUtzmNQ,730
13
+ dbt_platform_helper/commands/internal.py,sha256=DjyVV34hFH2MWjwhvnqfTTw1_JE5l3NlfvuOVx6Bo50,4811
14
14
  dbt_platform_helper/commands/notify.py,sha256=DMXA0AHot6-7CMzmY0PXPMMBVnLgvQgXr6np6OnSQh4,3401
15
15
  dbt_platform_helper/commands/pipeline.py,sha256=PGpDDmyReVa4gdpXDwJEsHN51f5MgTIbm2AibTkuWrE,2580
16
16
  dbt_platform_helper/commands/secrets.py,sha256=AMwLCi7uxuMMfhDfGD8OcuIYMzU8q2VQXWxaiuztvzA,3296
17
- dbt_platform_helper/commands/service.py,sha256=Lqo4vmNHxa0ofTWIYEpwKoyT1iqsTCkMjz3HeqSE4og,1702
18
17
  dbt_platform_helper/commands/version.py,sha256=2GltWeeN7cqhVj9FhYWSbXSQSyNILHVNOeANGWtAllY,1097
19
- dbt_platform_helper/constants.py,sha256=vIe6SyesBDtkjgRieT-Ui1ZLS_4c1YoqN7JE9qXt1uQ,1858
18
+ dbt_platform_helper/constants.py,sha256=c05aVWVSvlBoEFsZdrOUWtNdAbFq7noAndkVdqG5eRc,2580
20
19
  dbt_platform_helper/default-extensions.yml,sha256=SU1ZitskbuEBpvE7efc3s56eAUF11j70brhj_XrNMMo,493
21
20
  dbt_platform_helper/domain/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
21
  dbt_platform_helper/domain/codebase.py,sha256=2hJoBiDB2ciOudT_YUR44XV0ZQPWUJld_UIuds4XOt8,12481
23
- dbt_platform_helper/domain/conduit.py,sha256=0aX5rhynkkJj8rJUwfyLENyCwlAI67_Vkky1lOEl6rw,12496
24
- dbt_platform_helper/domain/config.py,sha256=Iyf-lV4YDD6BHH-RRaTvp-7qPS8BYeHM_SkSfeU7si4,13802
22
+ dbt_platform_helper/domain/conduit.py,sha256=2gKpkG7F69IHZXDHI7Uj_L1pnIUMpz0_F7cRBdB4lJA,12774
23
+ dbt_platform_helper/domain/config.py,sha256=tLDX3oDMicduN0MH3RZxiK7aBG1U1-BXyG8y6U1pbqI,14877
25
24
  dbt_platform_helper/domain/copilot.py,sha256=g8W2LaskyhOvtNoCoNbwucGTrfdAzj-AJ0J98tgLbhA,15138
26
25
  dbt_platform_helper/domain/copilot_environment.py,sha256=fL3XJCOfO0BJRCrCoBPFCcshrQoX1FeSYNTziOEaH4A,9093
27
26
  dbt_platform_helper/domain/database_copy.py,sha256=4A84xqj3c_VjYlXb81B8Kt8us8IcCQVVF6GyPAAmwyo,9638
28
- dbt_platform_helper/domain/maintenance_page.py,sha256=pTY_GXAMzqowdLCXM7BmsbsUeZ8oPO4mI8pUae66cjU,15786
27
+ dbt_platform_helper/domain/maintenance_page.py,sha256=FtDQ43Wye_z8MlkT7pGButwHRPFJX9nfVOPr6BDRfJk,15958
29
28
  dbt_platform_helper/domain/notify.py,sha256=_BWj5znDWtrSdJ5xzDBgnao4ukliBA5wiUZGobIDyiI,1894
30
29
  dbt_platform_helper/domain/pipelines.py,sha256=NrH9dl5Pzdds9TdWJmPZmgyBhHfcaN6byouBWI0W67s,8565
31
30
  dbt_platform_helper/domain/plans.py,sha256=X5-jKGiJDVWn0CRH1k5aV74fTH0E41HqFQcCo5kB4hI,1160
32
- dbt_platform_helper/domain/service.py,sha256=ByEXzGw_yr80b4FoI_TJEssB2oWcx_DAGFqOObD5mu4,9482
31
+ dbt_platform_helper/domain/service.py,sha256=pB4GQdrliFBLERKpTsa0F6Iy3J7nOVSc-REqDFKB9OA,17766
33
32
  dbt_platform_helper/domain/terraform_environment.py,sha256=g9PSuZeVXgboGNDXU7OGMiRATd67NU8S92HUGri1fbo,2471
33
+ dbt_platform_helper/domain/update_alb_rules.py,sha256=DiFxw0Gf7ZBsUaMbQmHuOYLJzFoUKuzZY5a09QIcTzs,14964
34
34
  dbt_platform_helper/domain/versioning.py,sha256=pIL8VPAJHqX5kJBp3QIxII5vmUo4aIYW_U9u_KxUJd0,5494
35
- dbt_platform_helper/entities/platform_config_schema.py,sha256=8j6OK_YpU_oXY9pJg4A1TjHvSX-T8rzSfHTHbvvSnis,27682
35
+ dbt_platform_helper/entities/platform_config_schema.py,sha256=OJlPMBkV2h8HbxSui-c6CXoqAAg2UN-V2Lq5qn5SwxY,27533
36
36
  dbt_platform_helper/entities/semantic_version.py,sha256=VgQ6V6OgSaleuVmMB8Kl_yLoakXl2auapJTDbK00mfc,2679
37
- dbt_platform_helper/entities/service.py,sha256=GExA0gOiKIcY3WX4vx_j9VSv6BAeRm9-tIUbs7YkyFI,4169
37
+ dbt_platform_helper/entities/service.py,sha256=Vdzu4zeazuS0j0C9jgvKKNORRyVcjU77CIoLv3V6CPM,9343
38
38
  dbt_platform_helper/jinja2_tags.py,sha256=hKG6RS3zlxJHQ-Op9r2U2-MhWp4s3lZir4Ihe24ApJ0,540
39
39
  dbt_platform_helper/platform_exception.py,sha256=HGfCYRD20REsynqMKmyZndTfdkMd5dLSIEB2qGGCeP8,244
40
40
  dbt_platform_helper/providers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
41
41
  dbt_platform_helper/providers/aws/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
42
- dbt_platform_helper/providers/aws/exceptions.py,sha256=7zrbzGuZhZypmT7LB4pK7TrYD4kn5H0L_lgx07o2VPg,2332
42
+ dbt_platform_helper/providers/aws/exceptions.py,sha256=88EA__k0Rg3PrHw_Oq2ZiPfA34vcQO_mqN2Cbg2I7s0,2528
43
43
  dbt_platform_helper/providers/aws/interfaces.py,sha256=0JFggcUTJ8zERdxNVVpIiKvaaZeT2c-VECDG--MOi8E,285
44
44
  dbt_platform_helper/providers/aws/opensearch.py,sha256=Qne2SoPllmacVSc7AxtjBlEbSBsRMbR_ySEkEymSF9k,581
45
45
  dbt_platform_helper/providers/aws/redis.py,sha256=i3Kb00_BdqssjQg1wgZ-8GRXcEWQiORWnIEq6qkAXjQ,551
46
- dbt_platform_helper/providers/aws/sso_auth.py,sha256=1cE9gVu0XZoE3Nycs1anShistRU_CZCOGMFzFpaAq0w,2275
46
+ dbt_platform_helper/providers/aws/sso_auth.py,sha256=fl1WSmhpyt8WZAe6EY5WDA33nEPrIIQzO-DVuWlFjsA,2844
47
47
  dbt_platform_helper/providers/cache.py,sha256=1hEwp0y9WYbEfgsp-RU9MyzIgCt1-4BxApgd_0uVweE,3615
48
48
  dbt_platform_helper/providers/cloudformation.py,sha256=syMH6xc-ALRbsYQvlw9RcjX7c1MufFzwEdEzp_ucWig,5359
49
- dbt_platform_helper/providers/config.py,sha256=652JeXsZgRcV2vN-mKDh_FwapaGdL4dOkHx8mRRohG4,10993
49
+ dbt_platform_helper/providers/config.py,sha256=8eLz22fOrz28fKGCbQn-j3FDGhI8bY5WCpBc1_THDwg,10505
50
50
  dbt_platform_helper/providers/config_validator.py,sha256=kZZAJIApKKZ9yjDwCnZ6oL6ZSfaA-CxQrisnAWNgIhw,10966
51
51
  dbt_platform_helper/providers/copilot.py,sha256=voFVGhvtOElulx6Cgd1KQGkybrg8v4oGkJTr_xRpF18,5582
52
52
  dbt_platform_helper/providers/ecr.py,sha256=eYXSY1-pFN6F3Es1WSZgv3dmvX2oD-baqhHDO-QzgVg,4382
53
- dbt_platform_helper/providers/ecs.py,sha256=4XRpOgcl7KFiTp9lhNrp4Lvmje0ZFYuUh9Z_eEqhyhA,6538
53
+ dbt_platform_helper/providers/ecs.py,sha256=nx1KZdsz6DLS23M9cSvMXQRuSqk5DF2XQ6njrrcLE0s,9989
54
54
  dbt_platform_helper/providers/environment_variable.py,sha256=PopMLKnWcoObQrgg7xSEb-pzVT54_QGFsb_HtL_9YU8,794
55
55
  dbt_platform_helper/providers/files.py,sha256=sH02Ka_WaDBFtN4Y0i9kuo9YQoKn2rhUy0Dn8LPMrEw,857
56
56
  dbt_platform_helper/providers/io.py,sha256=-C_NLHH_ebN2G5ZMtAAj4E9AqcDZX98mIWgAV34Dm7U,1737
57
57
  dbt_platform_helper/providers/kms.py,sha256=JR2EU3icXePoJCtr7QnqDPj1wWbyn5Uf9CRFq3_4lRs,647
58
- dbt_platform_helper/providers/load_balancers.py,sha256=Xm7cyFIKfGPeD1HzIFCT8XQ6QJA8yJOwZjTuc6k8zcw,11800
58
+ dbt_platform_helper/providers/load_balancers.py,sha256=E6XWs6D3Y0AJjGwH0kFMbhhs9sI48p5m3BIF2dXF6rs,15792
59
+ dbt_platform_helper/providers/logs.py,sha256=fntPhkvHXq0h1gvSQ4Sdnq9rwpWup2Q-i4Gkn_mYkfQ,2076
59
60
  dbt_platform_helper/providers/parameter_store.py,sha256=klxDhcQ65Yc2KAc4Gf5P0vhpZOW7_vZalAVb-LLAA4s,1568
61
+ dbt_platform_helper/providers/s3.py,sha256=A-0sfQuHBbfRJ1txNQ_NXTrqNRrvw4LTZVaxK08q8I4,661
60
62
  dbt_platform_helper/providers/schema_migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
61
63
  dbt_platform_helper/providers/schema_migrations/schema_v0_to_v1_migration.py,sha256=dplbvEAc8l8F4dEAy3JwLP1Phjkt4QVuQYNX_EKe_Ls,2036
62
64
  dbt_platform_helper/providers/schema_migrator.py,sha256=qk14k3hMz1av9VrxHyJw2OKJLQnCBv_ugOoxZr3tFXQ,2854
63
65
  dbt_platform_helper/providers/secrets.py,sha256=mOTIrcRRxxV2tS40U8onAjWekfPS3NzCvvyCMjr_yrU,5327
64
66
  dbt_platform_helper/providers/slack_channel_notifier.py,sha256=G8etEcaBQSNHg8BnyC5UPv6l3vUB14cYWjcaAQksaEk,2135
65
- dbt_platform_helper/providers/terraform_manifest.py,sha256=SEdlylBIpe0qsQFEG0ttJeoE9BthkzJ7VGQOfgOoC3g,14274
67
+ dbt_platform_helper/providers/terraform_manifest.py,sha256=Nkc-1LbmlrBk4Bt6bCC1lexp0jkfyaGuYTJFq6Xi8kI,14111
66
68
  dbt_platform_helper/providers/validation.py,sha256=i2g-Mrd4hy_fGIfGa6ZQy4vTJ40OM44Fe_XpEifGWxs,126
67
69
  dbt_platform_helper/providers/version.py,sha256=QNGrV5nyJi0JysXowYUU4OrXGDn27WmFezlV8benpdY,4251
68
70
  dbt_platform_helper/providers/version_status.py,sha256=qafnhZrEc9k1cvXJpvJhkGj6WtkzcsoQhqS_Y6JXy48,929
69
71
  dbt_platform_helper/providers/vpc.py,sha256=KdgwyHv2RwNpq16Sa2FtWm7DMJlTNmsPbXkbMNMYiQo,4082
70
- dbt_platform_helper/providers/yaml_file.py,sha256=pgSgC20_Se43HfMbpkTGyn4MkXkuA963t9djxxBoJnI,3902
72
+ dbt_platform_helper/providers/yaml_file.py,sha256=rWWYTXUgfklrFC7wcdfloJbJyQTDL7HKpoPM-qf_vBU,4304
71
73
  dbt_platform_helper/templates/.copilot/config.yml,sha256=J_bA9sCtBdCPBRImpCBRnYvhQd4vpLYIXIU-lq9vbkA,158
72
74
  dbt_platform_helper/templates/.copilot/image_build_run.sh,sha256=adYucYXEB-kAgZNjTQo0T6EIAY8sh_xCEvVhWKKQ8mw,164
73
75
  dbt_platform_helper/templates/.copilot/phases/build.sh,sha256=umKXePcRvx4XyrRY0fAWIyYFtNjqBI2L8vIJk-V7C60,121
@@ -94,7 +96,7 @@ dbt_platform_helper/templates/svc/maintenance_pages/migration.html,sha256=GiQsOi
94
96
  dbt_platform_helper/templates/svc/overrides/cfn.patches.yml,sha256=EdzEo-utytsye4Ck3bVSK8SuKdwUhX7HtQGdvTvHfps,824
95
97
  dbt_platform_helper/utilities/decorators.py,sha256=rS6ohsuo0bc6fkZP98Qwaeh0c_v2MDqn9hCvqfoz2w8,3548
96
98
  dbt_platform_helper/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
97
- dbt_platform_helper/utils/application.py,sha256=414czQmCUMDohoz38cY8FjoitJolCmRxCqc9TMJTsE4,6951
99
+ dbt_platform_helper/utils/application.py,sha256=DGRSuF0eYs8sf5e6thb7yXFCaQZCeVpB0vODPAVQc7w,8416
98
100
  dbt_platform_helper/utils/arn_parser.py,sha256=BaXzIxSOLdFmP_IfAxRq-0j-0Re1iCN7L4j2Zi5-CRQ,1304
99
101
  dbt_platform_helper/utils/aws.py,sha256=mnffVJzvXojfmYh1waeUWwHYo24jRu95rXg8LiuogtA,13096
100
102
  dbt_platform_helper/utils/click.py,sha256=Fx4y4bbve1zypvog_sgK7tJtCocmzheoEFLBRv1lfdM,2943
@@ -103,12 +105,12 @@ dbt_platform_helper/utils/git.py,sha256=9jyLhv37KKE6r-_hb3zvjhTbluA81kdrOdNeG6MB
103
105
  dbt_platform_helper/utils/messages.py,sha256=nWA7BWLb7ND0WH5TejDN4OQUJSKYBxU4tyCzteCrfT0,142
104
106
  dbt_platform_helper/utils/template.py,sha256=g-Db-0I6a6diOHkgK1nYA0IxJSO4TRrjqOvlyeOR32o,950
105
107
  dbt_platform_helper/utils/validation.py,sha256=W5jKC2zp5Q7cJ0PT57GB-s9FkJXrNt1jmWojXRFymcY,1187
106
- platform_helper.py,sha256=APhyqhU6PYsuocg0fzPAwbUnqUxmoikYAlUIJSHsAnI,2175
108
+ platform_helper.py,sha256=JKfXj2lptIc2CRHxo8u79kDKQH_IRV3jwPaL8T-1aAs,2052
107
109
  terraform/elasticache-redis/plans.yml,sha256=efJfkLuLC_5TwhLb9DalKHOuZFO79y6iei6Dg_tqKjI,1831
108
110
  terraform/opensearch/plans.yml,sha256=lQbUSNMGfvUeDMcGx8mSwzGQhMJU3EZ4J4tPzPKaq6c,1471
109
111
  terraform/postgres/plans.yml,sha256=plwCklW1VB_tNJFyUduRMZx9UANgiWH_7TGLWUaUEus,2553
110
- dbt_platform_helper-15.10.0.dist-info/METADATA,sha256=pf68aOIRfj_5MxXS2W9aTBmNwrJKhaVUbd6BgJA4LWU,2802
111
- dbt_platform_helper-15.10.0.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
112
- dbt_platform_helper-15.10.0.dist-info/entry_points.txt,sha256=QhbY8F434A-onsg0-FsdMd2U6HKh6Q7yCFFZrGUh5-M,67
113
- dbt_platform_helper-15.10.0.dist-info/licenses/LICENSE,sha256=dP79lN73--7LMApnankTGLqDbImXg8iYFqWgnExGkGk,1090
114
- dbt_platform_helper-15.10.0.dist-info/RECORD,,
112
+ dbt_platform_helper-15.12.0.dist-info/METADATA,sha256=sKYsQJEWzPx59WeWZ_5lLFlzRKv48-BsM3QDyqot4MY,2802
113
+ dbt_platform_helper-15.12.0.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
114
+ dbt_platform_helper-15.12.0.dist-info/entry_points.txt,sha256=QhbY8F434A-onsg0-FsdMd2U6HKh6Q7yCFFZrGUh5-M,67
115
+ dbt_platform_helper-15.12.0.dist-info/licenses/LICENSE,sha256=dP79lN73--7LMApnankTGLqDbImXg8iYFqWgnExGkGk,1090
116
+ dbt_platform_helper-15.12.0.dist-info/RECORD,,
platform_helper.py CHANGED
@@ -16,7 +16,6 @@ from dbt_platform_helper.commands.internal import internal as internal_commands
16
16
  from dbt_platform_helper.commands.notify import notify as notify_commands
17
17
  from dbt_platform_helper.commands.pipeline import pipeline as pipeline_commands
18
18
  from dbt_platform_helper.commands.secrets import secrets as secrets_commands
19
- from dbt_platform_helper.commands.service import service as service_commands
20
19
  from dbt_platform_helper.commands.version import version as version_commands
21
20
  from dbt_platform_helper.utils.click import ClickDocOptGroup
22
21
 
@@ -40,7 +39,6 @@ platform_helper.add_command(generate_commands)
40
39
  platform_helper.add_command(internal_commands)
41
40
  platform_helper.add_command(pipeline_commands)
42
41
  platform_helper.add_command(secrets_commands)
43
- platform_helper.add_command(service_commands)
44
42
  platform_helper.add_command(notify_commands)
45
43
  platform_helper.add_command(database_commands)
46
44
  platform_helper.add_command(version_commands)
@@ -1,53 +0,0 @@
1
- import click
2
-
3
- from dbt_platform_helper.domain.service import ServiceManager
4
- from dbt_platform_helper.domain.versioning import PlatformHelperVersioning
5
- from dbt_platform_helper.platform_exception import PlatformException
6
- from dbt_platform_helper.providers.io import ClickIOProvider
7
- from dbt_platform_helper.utils.click import ClickDocOptGroup
8
-
9
-
10
- @click.group(cls=ClickDocOptGroup)
11
- def service():
12
- """Commands affecting services."""
13
- PlatformHelperVersioning().check_if_needs_update()
14
-
15
-
16
- @service.command(help="Generate terraform manifest for the specified service(s).")
17
- @click.option(
18
- "--name",
19
- "-n",
20
- required=False,
21
- help="The name of the service to generate a manifest for. Multiple values accepted.",
22
- multiple=True,
23
- )
24
- @click.option(
25
- "--environment",
26
- "-e",
27
- required=False,
28
- multiple=True,
29
- help="The name of the environment to generate service manifests for. Multiple values accepted.",
30
- )
31
- @click.option(
32
- "--image-tag",
33
- "-i",
34
- required=False,
35
- help="Docker image tag to deploy for the service. Overrides the $IMAGE_TAG environment variable.",
36
- )
37
- def generate(name, environment, image_tag):
38
- """Validates the service-config.yml format, applies the environment-specific
39
- overrides, and generates a Terraform manifest at
40
- /terraform/services/<environment>/<service>/main.tf.json."""
41
-
42
- services = list(name)
43
- environments = list(environment)
44
- click_io = ClickIOProvider()
45
-
46
- try:
47
- service_manager = ServiceManager()
48
- service_manager.generate(
49
- environments=environments, services=services, image_tag_flag=image_tag
50
- )
51
-
52
- except PlatformException as err:
53
- click_io.abort_with_error(str(err))