dbt-platform-helper 10.8.1__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.
@@ -274,6 +274,38 @@ LIFECYCLE_RULE = {
274
274
  "enabled": bool,
275
275
  }
276
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
+
277
309
  S3_BASE = {
278
310
  Optional("readonly"): bool,
279
311
  Optional("services"): Or("__all__", [str]),
@@ -284,6 +316,7 @@ S3_BASE = {
284
316
  Optional("retention_policy"): RETENTION_POLICY,
285
317
  Optional("versioning"): bool,
286
318
  Optional("lifecycle_rules"): [LIFECYCLE_RULE],
319
+ Optional("data_migration"): DATA_MIGRATION,
287
320
  }
288
321
  },
289
322
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dbt-platform-helper
3
- Version: 10.8.1
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
@@ -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=yKP-UIOTbla_14WcafZUOUDVqHbGQagZpMeHoF5ktUU,22911
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.8.1.dist-info/LICENSE,sha256=dP79lN73--7LMApnankTGLqDbImXg8iYFqWgnExGkGk,1090
100
- dbt_platform_helper-10.8.1.dist-info/METADATA,sha256=RmcvsRVK6CECWF1wkmwUG8zha7aU597TI30V3i8tEfk,3126
101
- dbt_platform_helper-10.8.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
102
- dbt_platform_helper-10.8.1.dist-info/entry_points.txt,sha256=QhbY8F434A-onsg0-FsdMd2U6HKh6Q7yCFFZrGUh5-M,67
103
- dbt_platform_helper-10.8.1.dist-info/RECORD,,
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,,