dbt-platform-helper 13.0.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/domain/database_copy.py +6 -3
- dbt_platform_helper/providers/load_balancers.py +4 -2
- dbt_platform_helper/providers/vpc.py +0 -5
- {dbt_platform_helper-13.0.0.dist-info → dbt_platform_helper-13.0.1.dist-info}/METADATA +1 -1
- {dbt_platform_helper-13.0.0.dist-info → dbt_platform_helper-13.0.1.dist-info}/RECORD +8 -8
- {dbt_platform_helper-13.0.0.dist-info → dbt_platform_helper-13.0.1.dist-info}/LICENSE +0 -0
- {dbt_platform_helper-13.0.0.dist-info → dbt_platform_helper-13.0.1.dist-info}/WHEEL +0 -0
- {dbt_platform_helper-13.0.0.dist-info → dbt_platform_helper-13.0.1.dist-info}/entry_points.txt +0 -0
|
@@ -79,6 +79,9 @@ class DatabaseCopy:
|
|
|
79
79
|
except VpcProviderException as ex:
|
|
80
80
|
self.io.abort_with_error(str(ex))
|
|
81
81
|
|
|
82
|
+
if not vpc_config.security_groups:
|
|
83
|
+
self.io.abort_with_error(f"No security groups found in vpc '{vpc_name}'")
|
|
84
|
+
|
|
82
85
|
database_identifier = f"{self.app}-{env}-{self.database}"
|
|
83
86
|
|
|
84
87
|
try:
|
|
@@ -121,7 +124,7 @@ class DatabaseCopy:
|
|
|
121
124
|
self,
|
|
122
125
|
session: boto3.session.Session,
|
|
123
126
|
env: str,
|
|
124
|
-
|
|
127
|
+
vpc: Vpc,
|
|
125
128
|
is_dump: bool,
|
|
126
129
|
db_connection_string: str,
|
|
127
130
|
filename: str,
|
|
@@ -145,8 +148,8 @@ class DatabaseCopy:
|
|
|
145
148
|
],
|
|
146
149
|
networkConfiguration={
|
|
147
150
|
"awsvpcConfiguration": {
|
|
148
|
-
"subnets":
|
|
149
|
-
"securityGroups":
|
|
151
|
+
"subnets": vpc.private_subnets,
|
|
152
|
+
"securityGroups": vpc.security_groups,
|
|
150
153
|
"assignPublicIp": "DISABLED",
|
|
151
154
|
}
|
|
152
155
|
},
|
|
@@ -21,7 +21,9 @@ def get_load_balancer_for_application(session: boto3.Session, app: str, env: str
|
|
|
21
21
|
load_balancer_arn = lb["ResourceArn"]
|
|
22
22
|
|
|
23
23
|
if not load_balancer_arn:
|
|
24
|
-
raise LoadBalancerNotFoundException(
|
|
24
|
+
raise LoadBalancerNotFoundException(
|
|
25
|
+
f"No load balancer found for {app} in the {env} environment"
|
|
26
|
+
)
|
|
25
27
|
|
|
26
28
|
return load_balancer_arn
|
|
27
29
|
|
|
@@ -39,7 +41,7 @@ def get_https_listener_for_application(session: boto3.Session, app: str, env: st
|
|
|
39
41
|
pass
|
|
40
42
|
|
|
41
43
|
if not listener_arn:
|
|
42
|
-
raise ListenerNotFoundException()
|
|
44
|
+
raise ListenerNotFoundException(f"No HTTPS listener for {app} in the {env} environment")
|
|
43
45
|
|
|
44
46
|
return listener_arn
|
|
45
47
|
|
|
@@ -98,9 +98,4 @@ class VpcProvider:
|
|
|
98
98
|
|
|
99
99
|
sec_groups = self._get_security_groups(app, env, vpc_id)
|
|
100
100
|
|
|
101
|
-
if not sec_groups:
|
|
102
|
-
raise SecurityGroupNotFoundException(
|
|
103
|
-
f"No matching security groups found in vpc '{vpc_name}'"
|
|
104
|
-
)
|
|
105
|
-
|
|
106
101
|
return Vpc(vpc_id, public_subnets, private_subnets, sec_groups)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: dbt-platform-helper
|
|
3
|
-
Version: 13.0.
|
|
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
|
|
@@ -22,7 +22,7 @@ dbt_platform_helper/domain/codebase.py,sha256=bLlTRqYmIz8J7W4siQczIJIt4Lc5-bjy-Q
|
|
|
22
22
|
dbt_platform_helper/domain/conduit.py,sha256=5C5GnF5jssJ1rFFCY6qaKgvLjYUkyytRJE4tHlanYa0,4370
|
|
23
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=
|
|
25
|
+
dbt_platform_helper/domain/database_copy.py,sha256=XMabpXdk8aEVSupUXkb3WzIjMfWCzms4h7Jchm__CrA,9482
|
|
26
26
|
dbt_platform_helper/domain/maintenance_page.py,sha256=qs1Cyqe_zMhM7bvOWfvCysX_55bKiXoR8tPt_T6u3CE,19414
|
|
27
27
|
dbt_platform_helper/domain/pipelines.py,sha256=ey1tXNcfkkWJ88xRZewWF9iZvy1_hWxhrZdk83D-6k8,5649
|
|
28
28
|
dbt_platform_helper/domain/terraform_environment.py,sha256=GsGPc3ufk3wxj7zYq6xkcnmspMI1EIaiQTFjD_HFS-8,3324
|
|
@@ -39,14 +39,14 @@ dbt_platform_helper/providers/ecr.py,sha256=lmLKGR5OQT8EyGsX-9M7oO0DHIyoMqgchBAV
|
|
|
39
39
|
dbt_platform_helper/providers/ecs.py,sha256=XlQHYhZiLGrqR-1ZWMagGH2R2Hy7mCP6676eZL3YbNQ,3842
|
|
40
40
|
dbt_platform_helper/providers/files.py,sha256=o43HkXS7Bo2oop2W83EkFnTggX1hNr48LNALY3vh5xk,688
|
|
41
41
|
dbt_platform_helper/providers/io.py,sha256=JkWNIMZ_lcYQ6XvdVAuwtTZjoFIPJ-84zbH09nWLMdk,816
|
|
42
|
-
dbt_platform_helper/providers/load_balancers.py,sha256=
|
|
42
|
+
dbt_platform_helper/providers/load_balancers.py,sha256=Q2h4UT4KVA9E7q55Q4HGKxLlvMtpOXdR-KWQJSqTfm0,2746
|
|
43
43
|
dbt_platform_helper/providers/opensearch.py,sha256=tp64jTzHlutleqMpi2h_ZKH1iakZPJnUODebX6i2mfA,1335
|
|
44
44
|
dbt_platform_helper/providers/platform_config_schema.py,sha256=UKF3w9JGwWb8ZpkYHsglpabCTRtbx2gX-vs9gvfOyCg,26586
|
|
45
45
|
dbt_platform_helper/providers/redis.py,sha256=aj8pitxG9IKrMkL3fIYayQhcHPPzApdaXq0Uq_0yblg,1217
|
|
46
46
|
dbt_platform_helper/providers/secrets.py,sha256=6cYIR15dLdHmqxtWQpM6R71e0_Xgsg9V291HBG-0LV0,5272
|
|
47
47
|
dbt_platform_helper/providers/terraform_manifest.py,sha256=HWko7QVq2Fh-biZxTw8JR0KNK3f9NT23dHoKihWhMZ4,5103
|
|
48
48
|
dbt_platform_helper/providers/validation.py,sha256=d_YzJZVjGNO65pXcPIcFc9I-FRCESeEC7GvUzP8n-As,596
|
|
49
|
-
dbt_platform_helper/providers/vpc.py,sha256=
|
|
49
|
+
dbt_platform_helper/providers/vpc.py,sha256=EIjjD71K1Ry3V1jyaAkAjZwlwu_FSTn-AS7kiJFiipA,2953
|
|
50
50
|
dbt_platform_helper/providers/yaml_file.py,sha256=7jMLsDWetBBHWUvcaW652LaYUqICnf0n1H9eS6kNT5o,1990
|
|
51
51
|
dbt_platform_helper/templates/.copilot/config.yml,sha256=J_bA9sCtBdCPBRImpCBRnYvhQd4vpLYIXIU-lq9vbkA,158
|
|
52
52
|
dbt_platform_helper/templates/.copilot/image_build_run.sh,sha256=adYucYXEB-kAgZNjTQo0T6EIAY8sh_xCEvVhWKKQ8mw,164
|
|
@@ -90,8 +90,8 @@ dbt_platform_helper/utils/template.py,sha256=g-Db-0I6a6diOHkgK1nYA0IxJSO4TRrjqOv
|
|
|
90
90
|
dbt_platform_helper/utils/validation.py,sha256=lmWVqRweswj-h7TPYP8lvluq8Qeu0htyKFbz2WUkPxI,1185
|
|
91
91
|
dbt_platform_helper/utils/versioning.py,sha256=XBZcyj8fW3xU6fzLTe1fMj2d3hKdQi8jUc-ZyPKJtwk,11428
|
|
92
92
|
platform_helper.py,sha256=bly3JkwbfwnWTZSZziu40dbgzQItsK-DIMMvL6ArFDY,1893
|
|
93
|
-
dbt_platform_helper-13.0.
|
|
94
|
-
dbt_platform_helper-13.0.
|
|
95
|
-
dbt_platform_helper-13.0.
|
|
96
|
-
dbt_platform_helper-13.0.
|
|
97
|
-
dbt_platform_helper-13.0.
|
|
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,,
|
|
File without changes
|
|
File without changes
|
{dbt_platform_helper-13.0.0.dist-info → dbt_platform_helper-13.0.1.dist-info}/entry_points.txt
RENAMED
|
File without changes
|