dbt-platform-helper 10.8.0__py3-none-any.whl → 10.9.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.
- dbt_platform_helper/utils/validation.py +34 -0
- {dbt_platform_helper-10.8.0.dist-info → dbt_platform_helper-10.9.0.dist-info}/METADATA +2 -2
- {dbt_platform_helper-10.8.0.dist-info → dbt_platform_helper-10.9.0.dist-info}/RECORD +6 -6
- {dbt_platform_helper-10.8.0.dist-info → dbt_platform_helper-10.9.0.dist-info}/LICENSE +0 -0
- {dbt_platform_helper-10.8.0.dist-info → dbt_platform_helper-10.9.0.dist-info}/WHEEL +0 -0
- {dbt_platform_helper-10.8.0.dist-info → dbt_platform_helper-10.9.0.dist-info}/entry_points.txt +0 -0
|
@@ -204,6 +204,7 @@ POSTGRES_PLANS = Or(
|
|
|
204
204
|
"small-ha",
|
|
205
205
|
"small-high-io",
|
|
206
206
|
"medium",
|
|
207
|
+
"medium-ha",
|
|
207
208
|
"medium-high-io",
|
|
208
209
|
"large",
|
|
209
210
|
"large-ha",
|
|
@@ -273,6 +274,38 @@ LIFECYCLE_RULE = {
|
|
|
273
274
|
"enabled": bool,
|
|
274
275
|
}
|
|
275
276
|
|
|
277
|
+
|
|
278
|
+
def kms_key_arn_regex(key):
|
|
279
|
+
return Regex(
|
|
280
|
+
r"^arn:aws:kms:.*:\d{12}:(key|alias).*",
|
|
281
|
+
error=f"{key} must contain a valid ARN for a KMS key",
|
|
282
|
+
)
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
def s3_bucket_arn_regex(key):
|
|
286
|
+
return Regex(
|
|
287
|
+
r"^arn:aws:s3::.*",
|
|
288
|
+
error=f"{key} must contain a valid ARN for an S3 bucket",
|
|
289
|
+
)
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
def iam_role_arn_regex(key):
|
|
293
|
+
return Regex(
|
|
294
|
+
r"^arn:aws:iam::\d{12}:role/.*",
|
|
295
|
+
error=f"{key} must contain a valid ARN for an IAM role",
|
|
296
|
+
)
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
DATA_IMPORT = {
|
|
300
|
+
Optional("source_kms_key_arn"): kms_key_arn_regex("source_kms_key_arn"),
|
|
301
|
+
"source_bucket_arn": s3_bucket_arn_regex("source_bucket_arn"),
|
|
302
|
+
"worker_role_arn": iam_role_arn_regex("worker_role_arn"),
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
DATA_MIGRATION = {
|
|
306
|
+
"import": DATA_IMPORT,
|
|
307
|
+
}
|
|
308
|
+
|
|
276
309
|
S3_BASE = {
|
|
277
310
|
Optional("readonly"): bool,
|
|
278
311
|
Optional("services"): Or("__all__", [str]),
|
|
@@ -283,6 +316,7 @@ S3_BASE = {
|
|
|
283
316
|
Optional("retention_policy"): RETENTION_POLICY,
|
|
284
317
|
Optional("versioning"): bool,
|
|
285
318
|
Optional("lifecycle_rules"): [LIFECYCLE_RULE],
|
|
319
|
+
Optional("data_migration"): DATA_MIGRATION,
|
|
286
320
|
}
|
|
287
321
|
},
|
|
288
322
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dbt-platform-helper
|
|
3
|
-
Version: 10.
|
|
3
|
+
Version: 10.9.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
|
|
@@ -24,7 +24,7 @@ Requires-Dist: cfn-lint (>=1.4.2,<2.0.0)
|
|
|
24
24
|
Requires-Dist: checkov (>=3.1.67,<4.0.0)
|
|
25
25
|
Requires-Dist: click (>=8.1.3,<9.0.0)
|
|
26
26
|
Requires-Dist: cloudfoundry-client (==1.35.2)
|
|
27
|
-
Requires-Dist: cryptography (>=41.0.3,<
|
|
27
|
+
Requires-Dist: cryptography (>=41.0.3,<44.0.0)
|
|
28
28
|
Requires-Dist: jinja2-simple-tags (>=0.5.0,<0.6.0)
|
|
29
29
|
Requires-Dist: jsonschema (>=4.17.0,<4.18.0)
|
|
30
30
|
Requires-Dist: mypy-boto3-codebuild (>=1.26.0.post1,<2.0.0)
|
|
@@ -93,11 +93,11 @@ dbt_platform_helper/utils/manifests.py,sha256=ji3UYHCxq9tTpkm4MlRa2y0-JOYYqq1pWZ
|
|
|
93
93
|
dbt_platform_helper/utils/messages.py,sha256=aLx6s9utt__IqlDdeIYq4n82ERwludu2Zfqy0Q2t-x8,115
|
|
94
94
|
dbt_platform_helper/utils/platform_config.py,sha256=dEGB6peHB1ywYSdS71JGxbWIuTFRaeQfWelksX9v6bQ,608
|
|
95
95
|
dbt_platform_helper/utils/template.py,sha256=raRx4QUCVJtKfvJK08Egg6gwWcs3r3V4nPWcJW4xNhA,574
|
|
96
|
-
dbt_platform_helper/utils/validation.py,sha256=
|
|
96
|
+
dbt_platform_helper/utils/validation.py,sha256=HhBBDEhvw0hExVRG2d4QiUCXSje_rwcuzlIlEuGIKPQ,23719
|
|
97
97
|
dbt_platform_helper/utils/versioning.py,sha256=h3veQpFoiOjYY9dRVppcBDzVfgZerT0lXuE9QCTo5-c,10710
|
|
98
98
|
platform_helper.py,sha256=zjsZKcbyrEQbKfERi0JG8JEL-MgG6EjxIMiWT66kCVg,2299
|
|
99
|
-
dbt_platform_helper-10.
|
|
100
|
-
dbt_platform_helper-10.
|
|
101
|
-
dbt_platform_helper-10.
|
|
102
|
-
dbt_platform_helper-10.
|
|
103
|
-
dbt_platform_helper-10.
|
|
99
|
+
dbt_platform_helper-10.9.0.dist-info/LICENSE,sha256=dP79lN73--7LMApnankTGLqDbImXg8iYFqWgnExGkGk,1090
|
|
100
|
+
dbt_platform_helper-10.9.0.dist-info/METADATA,sha256=hf8P7QL-hx9qYMtIuqBg56GFfje0p8RT_BApXhSy-Hc,3126
|
|
101
|
+
dbt_platform_helper-10.9.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
102
|
+
dbt_platform_helper-10.9.0.dist-info/entry_points.txt,sha256=QhbY8F434A-onsg0-FsdMd2U6HKh6Q7yCFFZrGUh5-M,67
|
|
103
|
+
dbt_platform_helper-10.9.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
{dbt_platform_helper-10.8.0.dist-info → dbt_platform_helper-10.9.0.dist-info}/entry_points.txt
RENAMED
|
File without changes
|