dbt-platform-helper 14.1.1__tar.gz → 15.0.0__tar.gz

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 (102) hide show
  1. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/PKG-INFO +1 -1
  2. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/COMMANDS.md +38 -1
  3. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/commands/notify.py +37 -2
  4. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/domain/notify.py +1 -1
  5. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/domain/versioning.py +1 -1
  6. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/pyproject.toml +1 -1
  7. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/LICENSE +0 -0
  8. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/README.md +0 -0
  9. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/__init__.py +0 -0
  10. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/addon-plans.yml +0 -0
  11. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/commands/__init__.py +0 -0
  12. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/commands/application.py +0 -0
  13. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/commands/codebase.py +0 -0
  14. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/commands/conduit.py +0 -0
  15. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/commands/config.py +0 -0
  16. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/commands/copilot.py +0 -0
  17. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/commands/database.py +0 -0
  18. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/commands/environment.py +0 -0
  19. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/commands/generate.py +0 -0
  20. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/commands/pipeline.py +0 -0
  21. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/commands/secrets.py +0 -0
  22. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/commands/version.py +0 -0
  23. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/constants.py +0 -0
  24. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/default-extensions.yml +0 -0
  25. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/domain/__init__.py +0 -0
  26. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/domain/codebase.py +0 -0
  27. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/domain/conduit.py +0 -0
  28. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/domain/config.py +0 -0
  29. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/domain/copilot.py +0 -0
  30. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/domain/copilot_environment.py +0 -0
  31. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/domain/database_copy.py +0 -0
  32. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/domain/maintenance_page.py +0 -0
  33. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/domain/pipelines.py +0 -0
  34. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/domain/terraform_environment.py +0 -0
  35. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/jinja2_tags.py +0 -0
  36. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/platform_exception.py +0 -0
  37. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/__init__.py +0 -0
  38. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/aws/__init__.py +0 -0
  39. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/aws/exceptions.py +0 -0
  40. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/aws/interfaces.py +0 -0
  41. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/aws/opensearch.py +0 -0
  42. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/aws/redis.py +0 -0
  43. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/aws/sso_auth.py +0 -0
  44. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/cache.py +0 -0
  45. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/cloudformation.py +0 -0
  46. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/config.py +0 -0
  47. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/config_validator.py +0 -0
  48. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/copilot.py +0 -0
  49. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/ecr.py +0 -0
  50. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/ecs.py +0 -0
  51. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/files.py +0 -0
  52. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/io.py +0 -0
  53. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/kms.py +0 -0
  54. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/load_balancers.py +0 -0
  55. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/parameter_store.py +0 -0
  56. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/platform_config_schema.py +0 -0
  57. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/schema_migrations/__init__.py +0 -0
  58. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/schema_migrations/schema_v0_to_v1_migration.py +0 -0
  59. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/schema_migrator.py +0 -0
  60. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/secrets.py +0 -0
  61. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/semantic_version.py +0 -0
  62. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/slack_channel_notifier.py +0 -0
  63. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/terraform_manifest.py +0 -0
  64. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/validation.py +0 -0
  65. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/version.py +0 -0
  66. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/version_status.py +0 -0
  67. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/vpc.py +0 -0
  68. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/providers/yaml_file.py +0 -0
  69. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/templates/.copilot/config.yml +0 -0
  70. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/templates/.copilot/image_build_run.sh +0 -0
  71. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/templates/.copilot/phases/build.sh +0 -0
  72. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/templates/.copilot/phases/install.sh +0 -0
  73. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/templates/.copilot/phases/post_build.sh +0 -0
  74. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/templates/.copilot/phases/pre_build.sh +0 -0
  75. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/templates/COMMANDS.md.jinja +0 -0
  76. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/templates/addon-instructions.txt +0 -0
  77. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/templates/addons/README.md +0 -0
  78. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/templates/addons/svc/appconfig-ipfilter.yml +0 -0
  79. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/templates/addons/svc/prometheus-policy.yml +0 -0
  80. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/templates/addons/svc/s3-cross-account-policy.yml +0 -0
  81. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/templates/addons/svc/s3-policy.yml +0 -0
  82. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/templates/addons/svc/subscription-filter.yml +0 -0
  83. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/templates/ci-codebuild-role-policy.json +0 -0
  84. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/templates/create-codebuild-role.json +0 -0
  85. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/templates/custom-codebuild-role-policy.json +0 -0
  86. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/templates/env/manifest.yml +0 -0
  87. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/templates/env/terraform-overrides/cfn.patches.yml +0 -0
  88. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/templates/environment-pipelines/main.tf +0 -0
  89. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/templates/svc/maintenance_pages/default.html +0 -0
  90. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/templates/svc/maintenance_pages/dmas-migration.html +0 -0
  91. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/templates/svc/maintenance_pages/migration.html +0 -0
  92. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/templates/svc/overrides/cfn.patches.yml +0 -0
  93. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/utils/__init__.py +0 -0
  94. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/utils/application.py +0 -0
  95. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/utils/arn_parser.py +0 -0
  96. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/utils/aws.py +0 -0
  97. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/utils/click.py +0 -0
  98. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/utils/git.py +0 -0
  99. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/utils/messages.py +0 -0
  100. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/utils/template.py +0 -0
  101. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/dbt_platform_helper/utils/validation.py +0 -0
  102. {dbt_platform_helper-14.1.1 → dbt_platform_helper-15.0.0}/platform_helper.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: dbt-platform-helper
3
- Version: 14.1.1
3
+ Version: 15.0.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
@@ -29,6 +29,7 @@
29
29
  - [platform-helper secrets list](#platform-helper-secrets-list)
30
30
  - [platform-helper notify](#platform-helper-notify)
31
31
  - [platform-helper notify environment-progress](#platform-helper-notify-environment-progress)
32
+ - [platform-helper notify post-message](#platform-helper-notify-post-message)
32
33
  - [platform-helper notify add-comment](#platform-helper-notify-add-comment)
33
34
  - [platform-helper database](#platform-helper-database)
34
35
  - [platform-helper database dump](#platform-helper-database-dump)
@@ -668,7 +669,7 @@ platform-helper secrets list <application> <environment>
668
669
  ## Usage
669
670
 
670
671
  ```
671
- platform-helper notify (environment-progress|add-comment)
672
+ platform-helper notify (environment-progress|post-message|add-comment)
672
673
  ```
673
674
 
674
675
  ## Options
@@ -680,6 +681,7 @@ platform-helper notify (environment-progress|add-comment)
680
681
 
681
682
  - [`add-comment` ↪](#platform-helper-notify-add-comment)
682
683
  - [`environment-progress` ↪](#platform-helper-notify-environment-progress)
684
+ - [`post-message` ↪](#platform-helper-notify-post-message)
683
685
 
684
686
  # platform-helper notify environment-progress
685
687
 
@@ -712,6 +714,41 @@ platform-helper notify environment-progress <slack_channel_id> <slack_token>
712
714
 
713
715
  - `--commit-sha <text>`
714
716
 
717
+ - `--slack-ref <text>`
718
+ - Slack message reference of the message to update
719
+ - `--help <boolean>` _Defaults to False._
720
+ - Show this message and exit.
721
+
722
+ # platform-helper notify post-message
723
+
724
+ [↩ Parent](#platform-helper-notify)
725
+
726
+ Send Slack notifications. This creates (or updates if --slack-ref is provided) the top level message to the channel.
727
+
728
+ ## Usage
729
+
730
+ ```
731
+ platform-helper notify post-message <slack_channel_id> <slack_token>
732
+ <message>
733
+ [--build-arn <build_arn>] [--repository <repository>]
734
+ [--commit-sha <commit_sha>]
735
+ [--slack-ref <slack_ref>]
736
+ ```
737
+
738
+ ## Arguments
739
+
740
+ - `slack-channel-id <text>`
741
+ - `slack-token <text>`
742
+ - `message <text>`
743
+
744
+ ## Options
745
+
746
+ - `--build-arn <text>`
747
+
748
+ - `--repository <text>`
749
+
750
+ - `--commit-sha <text>`
751
+
715
752
  - `--slack-ref <text>`
716
753
  - Slack message reference of the message to update
717
754
  - `--help <boolean>` _Defaults to False._
@@ -14,7 +14,8 @@ def notify():
14
14
 
15
15
 
16
16
  @notify.command(
17
- help="Send environment progress notifications. This creates (or updates if --slack-ref is provided) the top level message to the channel."
17
+ help="Send environment progress notifications. This creates (or updates if --slack-ref is provided) the top level message to the channel.",
18
+ deprecated=True,
18
19
  )
19
20
  @click.argument("slack-channel-id")
20
21
  @click.argument("slack-token")
@@ -23,7 +24,41 @@ def notify():
23
24
  @click.option("--repository")
24
25
  @click.option("--commit-sha")
25
26
  @click.option("--slack-ref", help="Slack message reference of the message to update")
27
+ @click.pass_context
26
28
  def environment_progress(
29
+ ctx,
30
+ slack_channel_id: str,
31
+ slack_token: str,
32
+ message: str,
33
+ build_arn: str,
34
+ repository: str,
35
+ commit_sha: str,
36
+ slack_ref: str,
37
+ ):
38
+
39
+ ctx.invoke(
40
+ post_message,
41
+ slack_channel_id=slack_channel_id,
42
+ slack_token=slack_token,
43
+ message=message,
44
+ build_arn=build_arn,
45
+ repository=repository,
46
+ commit_sha=commit_sha,
47
+ slack_ref=slack_ref,
48
+ )
49
+
50
+
51
+ @notify.command(
52
+ help="Send Slack notifications. This creates (or updates if --slack-ref is provided) the top level message to the channel."
53
+ )
54
+ @click.argument("slack-channel-id")
55
+ @click.argument("slack-token")
56
+ @click.argument("message")
57
+ @click.option("--build-arn")
58
+ @click.option("--repository")
59
+ @click.option("--commit-sha")
60
+ @click.option("--slack-ref", help="Slack message reference of the message to update")
61
+ def post_message(
27
62
  slack_channel_id: str,
28
63
  slack_token: str,
29
64
  message: str,
@@ -35,7 +70,7 @@ def environment_progress(
35
70
  try:
36
71
  io = ClickIOProvider()
37
72
  slack_notifier = SlackChannelNotifier(slack_token, slack_channel_id)
38
- result = Notify(slack_notifier).environment_progress(
73
+ result = Notify(slack_notifier).post_message(
39
74
  original_message_ref=slack_ref,
40
75
  message=message,
41
76
  build_arn=build_arn,
@@ -6,7 +6,7 @@ class Notify:
6
6
  def __init__(self, notifier: SlackChannelNotifier):
7
7
  self.notifier = notifier
8
8
 
9
- def environment_progress(
9
+ def post_message(
10
10
  self,
11
11
  message: str,
12
12
  build_arn: str = None,
@@ -50,7 +50,7 @@ class PlatformHelperVersioning:
50
50
  )
51
51
 
52
52
  def get_required_version(self):
53
- platform_config = self.config_provider.load_and_validate_platform_config()
53
+ platform_config = self.config_provider.load_unvalidated_config_file()
54
54
  required_version = platform_config.get("default_versions", {}).get("platform-helper")
55
55
  self.io.info(required_version)
56
56
  return required_version
@@ -3,7 +3,7 @@ line-length = 100
3
3
 
4
4
  [tool.poetry]
5
5
  name = "dbt-platform-helper"
6
- version = "14.1.1"
6
+ version = "15.0.0"
7
7
  description = "Set of tools to help transfer applications/services from GOV.UK PaaS to DBT PaaS augmenting AWS Copilot."
8
8
  authors = ["Department for Business and Trade Platform Team <sre-team@digital.trade.gov.uk>"]
9
9
  license = "MIT"