dbt-platform-helper 10.7.4__tar.gz → 10.8.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 (101) hide show
  1. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/PKG-INFO +1 -1
  2. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/pipelines/codebase/overrides/stack.ts +28 -23
  3. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/pipelines/codebase/overrides/types.ts +1 -0
  4. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/utils/validation.py +3 -0
  5. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/pyproject.toml +1 -1
  6. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/LICENSE +0 -0
  7. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/COMMANDS.md +0 -0
  8. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/README.md +0 -0
  9. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/__init__.py +0 -0
  10. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/addon-plans.yml +0 -0
  11. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/addons-template-map.yml +0 -0
  12. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/commands/__init__.py +0 -0
  13. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/commands/application.py +0 -0
  14. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/commands/check_cloudformation.py +0 -0
  15. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/commands/codebase.py +0 -0
  16. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/commands/conduit.py +0 -0
  17. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/commands/config.py +0 -0
  18. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/commands/copilot.py +0 -0
  19. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/commands/database.py +0 -0
  20. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/commands/dns.py +0 -0
  21. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/commands/environment.py +0 -0
  22. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/commands/generate.py +0 -0
  23. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/commands/notify.py +0 -0
  24. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/commands/pipeline.py +0 -0
  25. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/commands/secrets.py +0 -0
  26. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/commands/version.py +0 -0
  27. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/constants.py +0 -0
  28. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/custom_resources/__init__.py +0 -0
  29. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/custom_resources/s3_object.py +0 -0
  30. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/default-extensions.yml +0 -0
  31. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/exceptions.py +0 -0
  32. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/jinja2_tags.py +0 -0
  33. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/.copilot/config.yml +0 -0
  34. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/.copilot/image_build_run.sh +0 -0
  35. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/.copilot/phases/build.sh +0 -0
  36. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/.copilot/phases/install.sh +0 -0
  37. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/.copilot/phases/post_build.sh +0 -0
  38. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/.copilot/phases/pre_build.sh +0 -0
  39. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/COMMANDS.md.jinja +0 -0
  40. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/addon-instructions.txt +0 -0
  41. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/addons/README.md +0 -0
  42. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/addons/env/addons.parameters.yml +0 -0
  43. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/addons/env/aurora-postgres.yml +0 -0
  44. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/addons/env/monitoring.yml +0 -0
  45. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/addons/env/opensearch.yml +0 -0
  46. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/addons/env/rds-postgres.yml +0 -0
  47. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/addons/env/redis-cluster.yml +0 -0
  48. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/addons/env/s3.yml +0 -0
  49. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/addons/env/vpc.yml +0 -0
  50. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/addons/svc/appconfig-ipfilter.yml +0 -0
  51. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/addons/svc/prometheus-policy.yml +0 -0
  52. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/addons/svc/s3-policy.yml +0 -0
  53. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/addons/svc/subscription-filter.yml +0 -0
  54. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/ci-codebuild-role-policy.json +0 -0
  55. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/create-codebuild-role.json +0 -0
  56. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/custom-codebuild-role-policy.json +0 -0
  57. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/env/manifest.yml +0 -0
  58. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/env/overrides/.gitignore +0 -0
  59. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/env/overrides/README.md +0 -0
  60. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/env/overrides/bin/override.ts +0 -0
  61. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/env/overrides/cdk.json +0 -0
  62. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/env/overrides/log_resource_policy.json +0 -0
  63. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/env/overrides/package-lock.json +0 -0
  64. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/env/overrides/package.json +0 -0
  65. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/env/overrides/stack.ts +0 -0
  66. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/env/overrides/tsconfig.json +0 -0
  67. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/env/terraform-overrides/cfn.patches.yml +0 -0
  68. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/environments/main.tf +0 -0
  69. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/pipelines/codebase/manifest.yml +0 -0
  70. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/pipelines/codebase/overrides/.gitignore +0 -0
  71. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/pipelines/codebase/overrides/bin/override.ts +0 -0
  72. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/pipelines/codebase/overrides/buildspec.deploy.yml +0 -0
  73. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/pipelines/codebase/overrides/buildspec.image.yml +0 -0
  74. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/pipelines/codebase/overrides/cdk.json +0 -0
  75. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/pipelines/codebase/overrides/package-lock.json +0 -0
  76. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/pipelines/codebase/overrides/package.json +0 -0
  77. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/pipelines/codebase/overrides/tsconfig.json +0 -0
  78. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/pipelines/environments/buildspec.yml +0 -0
  79. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/pipelines/environments/manifest.yml +0 -0
  80. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/pipelines/environments/overrides/cfn.patches.yml +0 -0
  81. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/svc/maintenance_pages/default.html +0 -0
  82. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/svc/maintenance_pages/dmas-migration.html +0 -0
  83. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/svc/maintenance_pages/migration.html +0 -0
  84. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/svc/manifest-backend.yml +0 -0
  85. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/svc/manifest-public.yml +0 -0
  86. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/templates/svc/overrides/cfn.patches.yml +0 -0
  87. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/utils/__init__.py +0 -0
  88. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/utils/application.py +0 -0
  89. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/utils/arn_parser.py +0 -0
  90. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/utils/aws.py +0 -0
  91. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/utils/click.py +0 -0
  92. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/utils/cloudformation.py +0 -0
  93. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/utils/cloudfoundry.py +0 -0
  94. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/utils/files.py +0 -0
  95. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/utils/git.py +0 -0
  96. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/utils/manifests.py +0 -0
  97. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/utils/messages.py +0 -0
  98. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/utils/platform_config.py +0 -0
  99. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/utils/template.py +0 -0
  100. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/dbt_platform_helper/utils/versioning.py +0 -0
  101. {dbt_platform_helper-10.7.4 → dbt_platform_helper-10.8.0}/platform_helper.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dbt-platform-helper
3
- Version: 10.7.4
3
+ Version: 10.8.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
@@ -177,33 +177,38 @@ export class TransformedStack extends cdk.Stack {
177
177
 
178
178
  const currentEnvironment = buildProject.environment as cdk.aws_codebuild.CfnProject.EnvironmentProperty;
179
179
  const currentEnvironmentVariables = currentEnvironment.environmentVariables as Array<cdk.aws_codebuild.CfnProject.EnvironmentVariableProperty>;
180
+ const deployEnvironmentVariables = [
181
+ ...currentEnvironmentVariables,
182
+ {
183
+ name: 'CODESTAR_CONNECTION_ID',
184
+ value: this.codestarConnection.id
185
+ },
186
+ {
187
+ name: 'DEPLOY_REPOSITORY',
188
+ value: this.deployRepository
189
+ },
190
+ {
191
+ name: 'CODEBASE_REPOSITORY',
192
+ value: this.codebaseConfiguration.repository
193
+ },
194
+ {
195
+ name: 'COPILOT_SERVICES',
196
+ value: this.codebaseConfiguration.services.join(' ')
197
+ },
198
+ {
199
+ name: 'ECR_REPOSITORY',
200
+ value: this.ecrRepository()
201
+ },
202
+ ];
203
+
204
+ if (this.codebaseConfiguration.deploy_repository_branch){
205
+ deployEnvironmentVariables.push({name: 'DEPLOY_REPOSITORY_BRANCH', value: this.codebaseConfiguration.deploy_repository_branch})
206
+ }
180
207
 
181
208
  buildProject.environment = {
182
209
  ...buildProject.environment,
183
210
  image: 'public.ecr.aws/uktrade/ci-image-builder:tag-latest',
184
- environmentVariables: [
185
- ...currentEnvironmentVariables,
186
- {
187
- name: 'CODESTAR_CONNECTION_ID',
188
- value: this.codestarConnection.id
189
- },
190
- {
191
- name: 'DEPLOY_REPOSITORY',
192
- value: this.deployRepository
193
- },
194
- {
195
- name: 'CODEBASE_REPOSITORY',
196
- value: this.codebaseConfiguration.repository
197
- },
198
- {
199
- name: 'COPILOT_SERVICES',
200
- value: this.codebaseConfiguration.services.join(' ')
201
- },
202
- {
203
- name: 'ECR_REPOSITORY',
204
- value: this.ecrRepository()
205
- },
206
- ]
211
+ environmentVariables: deployEnvironmentVariables
207
212
  } as cdk.aws_codebuild.CfnProject.EnvironmentProperty;
208
213
 
209
214
  const currentSource = buildProject.source as cdk.aws_codebuild.CfnProject.SourceProperty;
@@ -26,6 +26,7 @@ export interface PipelinesConfiguration {
26
26
  codebase_pipelines: Array<{
27
27
  name: string;
28
28
  repository: string;
29
+ deploy_repository_branch?: string;
29
30
  additional_ecr_repository?: string;
30
31
  services: Array<string>;
31
32
  pipelines: Array<{
@@ -346,6 +346,8 @@ OPENSEARCH_DEFINITION = {
346
346
  Optional("index_slow_log_retention_in_days"): int,
347
347
  Optional("audit_log_retention_in_days"): int,
348
348
  Optional("search_slow_log_retention_in_days"): int,
349
+ Optional("password_special_characters"): str,
350
+ Optional("urlencode_password"): bool,
349
351
  }
350
352
  },
351
353
  }
@@ -409,6 +411,7 @@ CODEBASE_PIPELINES_DEFINITION = [
409
411
  "name": str,
410
412
  "repository": str,
411
413
  Optional("additional_ecr_repository"): str,
414
+ Optional("deploy_repository_branch"): str,
412
415
  "services": list[str],
413
416
  "pipelines": [
414
417
  Or(
@@ -3,7 +3,7 @@ line-length = 100
3
3
 
4
4
  [tool.poetry]
5
5
  name = "dbt-platform-helper"
6
- version = "10.7.4"
6
+ version = "10.8.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"