dbt-platform-helper 12.2.0__py3-none-any.whl → 12.2.2__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/domain/codebase.py +1 -1
- dbt_platform_helper/providers/ecs.py +1 -0
- dbt_platform_helper/utils/aws.py +6 -3
- {dbt_platform_helper-12.2.0.dist-info → dbt_platform_helper-12.2.2.dist-info}/METADATA +1 -1
- {dbt_platform_helper-12.2.0.dist-info → dbt_platform_helper-12.2.2.dist-info}/RECORD +8 -8
- {dbt_platform_helper-12.2.0.dist-info → dbt_platform_helper-12.2.2.dist-info}/LICENSE +0 -0
- {dbt_platform_helper-12.2.0.dist-info → dbt_platform_helper-12.2.2.dist-info}/WHEEL +0 -0
- {dbt_platform_helper-12.2.0.dist-info → dbt_platform_helper-12.2.2.dist-info}/entry_points.txt +0 -0
|
@@ -144,7 +144,7 @@ class Codebase:
|
|
|
144
144
|
if not application.environments.get(env):
|
|
145
145
|
raise ApplicationEnvironmentNotFoundError()
|
|
146
146
|
|
|
147
|
-
|
|
147
|
+
self.check_codebase_exists_fn(session, application, codebase)
|
|
148
148
|
|
|
149
149
|
self.check_image_exists_fn(session, application, codebase, commit)
|
|
150
150
|
|
|
@@ -7,6 +7,7 @@ from dbt_platform_helper.exceptions import ECSAgentNotRunning
|
|
|
7
7
|
from dbt_platform_helper.exceptions import NoClusterError
|
|
8
8
|
|
|
9
9
|
|
|
10
|
+
# Todo: Refactor to a class, review, then perhaps do the others
|
|
10
11
|
def get_cluster_arn(ecs_client, application_name: str, env: str) -> str:
|
|
11
12
|
for cluster_arn in ecs_client.list_clusters()["clusterArns"]:
|
|
12
13
|
tags_response = ecs_client.list_tags_for_resource(resourceArn=cluster_arn)
|
dbt_platform_helper/utils/aws.py
CHANGED
|
@@ -488,13 +488,16 @@ def start_build_extraction(codebuild_client, build_options):
|
|
|
488
488
|
def check_codebase_exists(session: Session, application, codebase: str):
|
|
489
489
|
try:
|
|
490
490
|
ssm_client = session.client("ssm")
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
491
|
+
json.loads(
|
|
492
|
+
ssm_client.get_parameter(
|
|
493
|
+
Name=f"/copilot/applications/{application.name}/codebases/{codebase}"
|
|
494
|
+
)["Parameter"]["Value"]
|
|
495
|
+
)
|
|
494
496
|
except (
|
|
495
497
|
KeyError,
|
|
496
498
|
ValueError,
|
|
497
499
|
ssm_client.exceptions.ParameterNotFound,
|
|
500
|
+
json.JSONDecodeError,
|
|
498
501
|
):
|
|
499
502
|
raise CopilotCodebaseNotFoundError
|
|
500
503
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dbt-platform-helper
|
|
3
|
-
Version: 12.2.
|
|
3
|
+
Version: 12.2.2
|
|
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
|
|
@@ -19,7 +19,7 @@ dbt_platform_helper/commands/version.py,sha256=XVfSd53TDti4cceBqTmRfq_yZnvxs14Rb
|
|
|
19
19
|
dbt_platform_helper/constants.py,sha256=HVaaO7hlQB41GrBBxcgk7hHie9tKbeYhJc-cRyYuIE0,453
|
|
20
20
|
dbt_platform_helper/default-extensions.yml,sha256=SU1ZitskbuEBpvE7efc3s56eAUF11j70brhj_XrNMMo,493
|
|
21
21
|
dbt_platform_helper/domain/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
|
-
dbt_platform_helper/domain/codebase.py,sha256=
|
|
22
|
+
dbt_platform_helper/domain/codebase.py,sha256=_Qx6WZs-16C3Ax0gEbbtPBbl0MNmuxm2Vd42bpc8AZs,9420
|
|
23
23
|
dbt_platform_helper/domain/conduit.py,sha256=nzkeFCRwEuI5QK092H50l6o2CDD4ZuCuTXLDDmsTNd4,7207
|
|
24
24
|
dbt_platform_helper/domain/database_copy.py,sha256=QUw8XeUzcKccu4U33b9AKSOwCuGsONIzdmInlOzsmA4,8525
|
|
25
25
|
dbt_platform_helper/domain/maintenance_page.py,sha256=NFHN_J0NthhJ1YkcOTJ8c0R8y33TrDZq3ka2fmMRM1g,15708
|
|
@@ -28,7 +28,7 @@ dbt_platform_helper/jinja2_tags.py,sha256=jFyN_Sxmko1GSfvrqRIGQ80CCW8EwlCV3su0ah
|
|
|
28
28
|
dbt_platform_helper/providers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
29
29
|
dbt_platform_helper/providers/cloudformation.py,sha256=wIfgfRl4eTdQfLBU6qIS_Q_US0TY3fEo5E-_GxDS_Gk,3981
|
|
30
30
|
dbt_platform_helper/providers/copilot.py,sha256=gEVaEnIcxFV418FitQTXU9MWtRv6Sb5TF7DNtYI49Ng,4662
|
|
31
|
-
dbt_platform_helper/providers/ecs.py,sha256=
|
|
31
|
+
dbt_platform_helper/providers/ecs.py,sha256=cH9z4gyj6mOhOCr85X2PtMRkUiUQ24ST9dxySChQEXQ,2570
|
|
32
32
|
dbt_platform_helper/providers/load_balancers.py,sha256=e1SPrWbBWq95paSVd3Y5yORIrHAZxcVabBYDjPyUTsU,1430
|
|
33
33
|
dbt_platform_helper/providers/secrets.py,sha256=9mZ3SfWguqUyd2s_yoOFEKxqqq6sls_ss_839Lo38bg,3122
|
|
34
34
|
dbt_platform_helper/templates/.copilot/config.yml,sha256=J_bA9sCtBdCPBRImpCBRnYvhQd4vpLYIXIU-lq9vbkA,158
|
|
@@ -74,7 +74,7 @@ dbt_platform_helper/templates/svc/overrides/cfn.patches.yml,sha256=W7-d017akuUq9
|
|
|
74
74
|
dbt_platform_helper/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
75
75
|
dbt_platform_helper/utils/application.py,sha256=C-t8LIFqE-rrVBNqWEGRtCd6uOt41Y2t0z9_SEZm7oE,4127
|
|
76
76
|
dbt_platform_helper/utils/arn_parser.py,sha256=1jY0elpAe4YL3ulrrCf1YiKmjI-7YXz4gJASqkIFHTc,1294
|
|
77
|
-
dbt_platform_helper/utils/aws.py,sha256=
|
|
77
|
+
dbt_platform_helper/utils/aws.py,sha256=Vs92jcQOJt8aL3xfnfUVX6AiQ2hRfYsf3n6eBsXjbi0,18627
|
|
78
78
|
dbt_platform_helper/utils/click.py,sha256=Fx4y4bbve1zypvog_sgK7tJtCocmzheoEFLBRv1lfdM,2943
|
|
79
79
|
dbt_platform_helper/utils/cloudfoundry.py,sha256=GnQ4fVLnDfOdNSrsJjI6ElZHqpgwINeoPn77cUH2UFY,484
|
|
80
80
|
dbt_platform_helper/utils/files.py,sha256=pa5uwwrEFIAgXZUyH2KEr2Yiu6bKuV4EMlhn9BcUMsY,5296
|
|
@@ -86,8 +86,8 @@ dbt_platform_helper/utils/template.py,sha256=raRx4QUCVJtKfvJK08Egg6gwWcs3r3V4nPW
|
|
|
86
86
|
dbt_platform_helper/utils/validation.py,sha256=TYLEVdTPBFArnodS9Z7V72qxZJ37GIJto3EXKuBiXFU,28944
|
|
87
87
|
dbt_platform_helper/utils/versioning.py,sha256=IBxdocJ8ZyJib38d1ja87tTuFE0iJ4npaDcAHQAKQ58,10825
|
|
88
88
|
platform_helper.py,sha256=bly3JkwbfwnWTZSZziu40dbgzQItsK-DIMMvL6ArFDY,1893
|
|
89
|
-
dbt_platform_helper-12.2.
|
|
90
|
-
dbt_platform_helper-12.2.
|
|
91
|
-
dbt_platform_helper-12.2.
|
|
92
|
-
dbt_platform_helper-12.2.
|
|
93
|
-
dbt_platform_helper-12.2.
|
|
89
|
+
dbt_platform_helper-12.2.2.dist-info/LICENSE,sha256=dP79lN73--7LMApnankTGLqDbImXg8iYFqWgnExGkGk,1090
|
|
90
|
+
dbt_platform_helper-12.2.2.dist-info/METADATA,sha256=0vT9stcLQEOFuV6SNXbi12AuZZ1tNBVRYr5Iuh6pL78,3212
|
|
91
|
+
dbt_platform_helper-12.2.2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
92
|
+
dbt_platform_helper-12.2.2.dist-info/entry_points.txt,sha256=QhbY8F434A-onsg0-FsdMd2U6HKh6Q7yCFFZrGUh5-M,67
|
|
93
|
+
dbt_platform_helper-12.2.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
{dbt_platform_helper-12.2.0.dist-info → dbt_platform_helper-12.2.2.dist-info}/entry_points.txt
RENAMED
|
File without changes
|