dbt-platform-helper 10.10.0__tar.gz → 10.11.1__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.10.0 → dbt_platform_helper-10.11.1}/PKG-INFO +1 -1
  2. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/commands/environment.py +64 -18
  3. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/addons/env/redis-cluster.yml +0 -14
  4. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/pipelines/codebase/overrides/stack.ts +8 -2
  5. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/utils/validation.py +1 -1
  6. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/pyproject.toml +1 -1
  7. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/LICENSE +0 -0
  8. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/COMMANDS.md +0 -0
  9. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/README.md +0 -0
  10. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/__init__.py +0 -0
  11. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/addon-plans.yml +0 -0
  12. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/addons-template-map.yml +0 -0
  13. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/commands/__init__.py +0 -0
  14. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/commands/application.py +0 -0
  15. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/commands/check_cloudformation.py +0 -0
  16. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/commands/codebase.py +0 -0
  17. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/commands/conduit.py +0 -0
  18. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/commands/config.py +0 -0
  19. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/commands/copilot.py +0 -0
  20. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/commands/database.py +0 -0
  21. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/commands/dns.py +0 -0
  22. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/commands/generate.py +0 -0
  23. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/commands/notify.py +0 -0
  24. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/commands/pipeline.py +0 -0
  25. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/commands/secrets.py +0 -0
  26. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/commands/version.py +0 -0
  27. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/constants.py +0 -0
  28. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/custom_resources/__init__.py +0 -0
  29. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/custom_resources/s3_object.py +0 -0
  30. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/default-extensions.yml +0 -0
  31. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/exceptions.py +0 -0
  32. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/jinja2_tags.py +0 -0
  33. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/.copilot/config.yml +0 -0
  34. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/.copilot/image_build_run.sh +0 -0
  35. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/.copilot/phases/build.sh +0 -0
  36. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/.copilot/phases/install.sh +0 -0
  37. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/.copilot/phases/post_build.sh +0 -0
  38. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/.copilot/phases/pre_build.sh +0 -0
  39. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/COMMANDS.md.jinja +0 -0
  40. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/addon-instructions.txt +0 -0
  41. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/addons/README.md +0 -0
  42. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/addons/env/addons.parameters.yml +0 -0
  43. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/addons/env/aurora-postgres.yml +0 -0
  44. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/addons/env/monitoring.yml +0 -0
  45. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/addons/env/opensearch.yml +0 -0
  46. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/addons/env/rds-postgres.yml +0 -0
  47. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/addons/env/s3.yml +0 -0
  48. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/addons/env/vpc.yml +0 -0
  49. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/addons/svc/appconfig-ipfilter.yml +0 -0
  50. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/addons/svc/prometheus-policy.yml +0 -0
  51. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/addons/svc/s3-policy.yml +0 -0
  52. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/addons/svc/subscription-filter.yml +0 -0
  53. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/ci-codebuild-role-policy.json +0 -0
  54. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/create-codebuild-role.json +0 -0
  55. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/custom-codebuild-role-policy.json +0 -0
  56. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/env/manifest.yml +0 -0
  57. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/env/overrides/.gitignore +0 -0
  58. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/env/overrides/README.md +0 -0
  59. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/env/overrides/bin/override.ts +0 -0
  60. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/env/overrides/cdk.json +0 -0
  61. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/env/overrides/log_resource_policy.json +0 -0
  62. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/env/overrides/package-lock.json +0 -0
  63. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/env/overrides/package.json +0 -0
  64. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/env/overrides/stack.ts +0 -0
  65. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/env/overrides/tsconfig.json +0 -0
  66. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/env/terraform-overrides/cfn.patches.yml +0 -0
  67. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/environments/main.tf +0 -0
  68. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/pipelines/codebase/manifest.yml +0 -0
  69. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/pipelines/codebase/overrides/.gitignore +0 -0
  70. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/pipelines/codebase/overrides/bin/override.ts +0 -0
  71. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/pipelines/codebase/overrides/buildspec.deploy.yml +0 -0
  72. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/pipelines/codebase/overrides/buildspec.image.yml +0 -0
  73. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/pipelines/codebase/overrides/cdk.json +0 -0
  74. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/pipelines/codebase/overrides/package-lock.json +0 -0
  75. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/pipelines/codebase/overrides/package.json +0 -0
  76. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/pipelines/codebase/overrides/tsconfig.json +0 -0
  77. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/pipelines/codebase/overrides/types.ts +0 -0
  78. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/pipelines/environments/buildspec.yml +0 -0
  79. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/pipelines/environments/manifest.yml +0 -0
  80. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/pipelines/environments/overrides/cfn.patches.yml +0 -0
  81. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/svc/maintenance_pages/default.html +0 -0
  82. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/svc/maintenance_pages/dmas-migration.html +0 -0
  83. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/svc/maintenance_pages/migration.html +0 -0
  84. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/svc/manifest-backend.yml +0 -0
  85. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/svc/manifest-public.yml +0 -0
  86. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/templates/svc/overrides/cfn.patches.yml +0 -0
  87. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/utils/__init__.py +0 -0
  88. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/utils/application.py +0 -0
  89. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/utils/arn_parser.py +0 -0
  90. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/utils/aws.py +0 -0
  91. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/utils/click.py +0 -0
  92. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/utils/cloudformation.py +0 -0
  93. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/utils/cloudfoundry.py +0 -0
  94. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/utils/files.py +0 -0
  95. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/utils/git.py +0 -0
  96. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/utils/manifests.py +0 -0
  97. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/utils/messages.py +0 -0
  98. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/utils/platform_config.py +0 -0
  99. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/utils/template.py +0 -0
  100. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/dbt_platform_helper/utils/versioning.py +0 -0
  101. {dbt_platform_helper-10.10.0 → dbt_platform_helper-10.11.1}/platform_helper.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dbt-platform-helper
3
- Version: 10.10.0
3
+ Version: 10.11.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
@@ -250,7 +250,7 @@ def get_cert_arn(session, application, env_name):
250
250
  return arn
251
251
 
252
252
 
253
- def get_env_ips(vpc: str, application_environment: Environment):
253
+ def get_env_ips(vpc: str, application_environment: Environment) -> List[str]:
254
254
  account_name = f"{application_environment.session.profile_name}-vpc"
255
255
  vpc_name = vpc if vpc else account_name
256
256
  ssm_client = application_environment.session.client("ssm")
@@ -275,8 +275,6 @@ def generate(name, vpc_name):
275
275
  )
276
276
  raise click.Abort
277
277
 
278
- session = get_aws_session_or_abort()
279
-
280
278
  try:
281
279
  conf = load_and_validate_platform_config()
282
280
  except SchemaError as ex:
@@ -284,6 +282,9 @@ def generate(name, vpc_name):
284
282
  raise click.Abort
285
283
 
286
284
  env_config = apply_environment_defaults(conf)["environments"][name]
285
+ profile_for_environment = env_config.get("accounts", {}).get("deploy", {}).get("name")
286
+ click.secho(f"Using {profile_for_environment} for this AWS session")
287
+ session = get_aws_session_or_abort(profile_for_environment)
287
288
 
288
289
  _generate_copilot_environment_manifests(name, conf["application"], env_config, session)
289
290
 
@@ -482,11 +483,8 @@ def delete_listener_rule(tag_descriptions: list, tag_name: str, lb_client: boto3
482
483
  tags = {t["Key"]: t["Value"] for t in description["Tags"]}
483
484
  if tags.get("name") == tag_name:
484
485
  current_rule_arn = description["ResourceArn"]
485
-
486
- if not current_rule_arn:
487
- return current_rule_arn
488
-
489
- lb_client.delete_rule(RuleArn=current_rule_arn)
486
+ if current_rule_arn:
487
+ lb_client.delete_rule(RuleArn=current_rule_arn)
490
488
 
491
489
  return current_rule_arn
492
490
 
@@ -500,7 +498,7 @@ def remove_maintenance_page(session: boto3.Session, listener_arn: str):
500
498
  "TagDescriptions"
501
499
  ]
502
500
 
503
- for name in ["MaintenancePage", "AllowedIps", "BypassIpFilter"]:
501
+ for name in ["MaintenancePage", "AllowedIps", "BypassIpFilter", "AllowedSourceIps"]:
504
502
  deleted = delete_listener_rule(tag_descriptions, name, lb_client)
505
503
 
506
504
  if name == "MaintenancePage" and not deleted:
@@ -520,15 +518,7 @@ def get_rules_tag_descriptions(rules: list, lb_client):
520
518
  return tag_descriptions
521
519
 
522
520
 
523
- def create_header_rule(
524
- lb_client: boto3.client,
525
- listener_arn: str,
526
- target_group_arn: str,
527
- header_name: str,
528
- values: list,
529
- rule_name: str,
530
- priority: int,
531
- ):
521
+ def get_host_conditions(lb_client: boto3.client, listener_arn: str, target_group_arn: str):
532
522
  rules = lb_client.describe_rules(ListenerArn=listener_arn)["Rules"]
533
523
 
534
524
  # Get current set of forwarding conditions for the target group
@@ -549,6 +539,20 @@ def create_header_rule(
549
539
  v for v in conditions[0]["HostHeaderConfig"]["Values"]
550
540
  ]
551
541
 
542
+ return conditions
543
+
544
+
545
+ def create_header_rule(
546
+ lb_client: boto3.client,
547
+ listener_arn: str,
548
+ target_group_arn: str,
549
+ header_name: str,
550
+ values: list,
551
+ rule_name: str,
552
+ priority: int,
553
+ ):
554
+ conditions = get_host_conditions(lb_client, listener_arn, target_group_arn)
555
+
552
556
  # add new condition to existing conditions
553
557
  combined_conditions = [
554
558
  {
@@ -573,6 +577,40 @@ def create_header_rule(
573
577
  )
574
578
 
575
579
 
580
+ def create_source_ip_rule(
581
+ lb_client: boto3.client,
582
+ listener_arn: str,
583
+ target_group_arn: str,
584
+ values: list,
585
+ rule_name: str,
586
+ priority: int,
587
+ ):
588
+ conditions = get_host_conditions(lb_client, listener_arn, target_group_arn)
589
+
590
+ # add new condition to existing conditions
591
+ combined_conditions = [
592
+ {
593
+ "Field": "source-ip",
594
+ "SourceIpConfig": {"Values": [value + "/32" for value in values]},
595
+ }
596
+ ] + conditions
597
+
598
+ lb_client.create_rule(
599
+ ListenerArn=listener_arn,
600
+ Priority=priority,
601
+ Conditions=combined_conditions,
602
+ Actions=[{"Type": "forward", "TargetGroupArn": target_group_arn}],
603
+ Tags=[
604
+ {"Key": "name", "Value": rule_name},
605
+ ],
606
+ )
607
+
608
+ click.secho(
609
+ f"Creating listener rule {rule_name} for HTTPS Listener with arn {listener_arn}.\n\nIf request source ip matches one of the values {values}, the request will be forwarded to target group with arn {target_group_arn}.",
610
+ fg="green",
611
+ )
612
+
613
+
576
614
  def add_maintenance_page(
577
615
  session: boto3.Session,
578
616
  listener_arn: str,
@@ -608,6 +646,14 @@ def add_maintenance_page(
608
646
  "AllowedIps",
609
647
  forwarded_rule_priority,
610
648
  )
649
+ create_source_ip_rule(
650
+ lb_client,
651
+ listener_arn,
652
+ target_group_arn,
653
+ [ip],
654
+ "AllowedSourceIps",
655
+ forwarded_rule_priority + 1,
656
+ )
611
657
 
612
658
  bypass_rule_priority = service_number
613
659
  create_header_rule(
@@ -35,20 +35,6 @@ Mappings:
35
35
  CacheParameterGroupFamily: 'redis7.x'
36
36
  '6.2':
37
37
  CacheParameterGroupFamily: 'redis6.x'
38
- '6.0':
39
- CacheParameterGroupFamily: 'redis6.x'
40
- '5.0.6':
41
- CacheParameterGroupFamily: 'redis5.0'
42
- '5.0.4':
43
- CacheParameterGroupFamily: 'redis5.0'
44
- '5.0.3':
45
- CacheParameterGroupFamily: 'redis5.0'
46
- '5.0.0':
47
- CacheParameterGroupFamily: 'redis5.0'
48
- '4.0.10':
49
- CacheParameterGroupFamily: 'redis4.0'
50
- '3.2.6':
51
- CacheParameterGroupFamily: 'redis3.2'
52
38
 
53
39
  Conditions:
54
40
  {{ addon_config.prefix }}HasAutomaticFailoverEnabled: !Not [!Equals [!FindInMap [{{ addon_config.prefix }}EnvironmentConfigMap, !Ref Env, NumReplicas], 0]]
@@ -84,7 +84,7 @@ export class TransformedStack extends cdk.Stack {
84
84
  envVars.push({name: 'ADDITIONAL_ECR_REPOSITORY', value: this.additionalEcrRepository()});
85
85
  }
86
86
 
87
- new cdk.aws_codebuild.CfnProject(this, 'ImageBuildProject', {
87
+ const imageBuildProject: cdk.aws_codebuild.CfnProject = new cdk.aws_codebuild.CfnProject(this, 'ImageBuildProject', {
88
88
  name: `codebuild-${this.appName}-${this.pipelineManifest.name}`,
89
89
  description: `Publish images on push to ${this.codebaseConfiguration.repository}`,
90
90
  badgeEnabled: true,
@@ -122,6 +122,9 @@ export class TransformedStack extends cdk.Stack {
122
122
  )),
123
123
  },
124
124
  });
125
+
126
+ imageBuildProject.node.addDependency(this.template.getResource("BuildProjectRole") as cdk.aws_iam.CfnRole);
127
+ imageBuildProject.node.addDependency(this.template.getResource("BuildProjectPolicy") as cdk.aws_iam.CfnPolicy);
125
128
  }
126
129
 
127
130
  private createECRRepository() {
@@ -403,7 +406,10 @@ export class TransformedStack extends cdk.Stack {
403
406
  const buildProjectPolicy = this.template.getResource("BuildProjectPolicy") as cdk.aws_iam.CfnPolicy;
404
407
  (buildProjectPolicy.policyDocument.Statement as Array<any>).push({
405
408
  Effect: 'Allow',
406
- Action: ['codestar-connections:UseConnection'],
409
+ Action: [
410
+ 'codestar-connections:GetConnectionToken',
411
+ 'codestar-connections:UseConnection',
412
+ ],
407
413
  Resource: [this.codestarConnection.arn],
408
414
  });
409
415
  }
@@ -180,7 +180,7 @@ REDIS_PLANS = Or(
180
180
  "x-large-ha",
181
181
  )
182
182
 
183
- REDIS_ENGINE_VERSIONS = Or("4.0.10", "5.0.6", "6.0", "6.2", "7.0", "7.1")
183
+ REDIS_ENGINE_VERSIONS = Or("6.2", "7.0", "7.1")
184
184
 
185
185
  REDIS_DEFINITION = {
186
186
  "type": "redis",
@@ -3,7 +3,7 @@ line-length = 100
3
3
 
4
4
  [tool.poetry]
5
5
  name = "dbt-platform-helper"
6
- version = "10.10.0"
6
+ version = "10.11.1"
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"