Skip to content

Commit e788d40

Browse files
Merge remote-tracking branch 'origin/main' into PRMP-374
2 parents aaea26d + 47cb5a4 commit e788d40

File tree

4 files changed

+30
-3
lines changed

4 files changed

+30
-3
lines changed

.github/workflows/cron-daily-health-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888

8989
run_cypress_tests:
9090
name: Run Cypress Tests
91-
runs-on: ubuntu-22.04
91+
runs-on: ubuntu-latest
9292
steps:
9393
- name: Checkout
9494
uses: actions/checkout@v5

infrastructure/lambda-dynamodb-migration.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module "migration-dynamodb-lambda" {
2828

2929
lambda_timeout = 900
3030
memory_size = 1024
31-
reserved_concurrent_executions = 200
31+
reserved_concurrent_executions = contains(["prod"], terraform.workspace) ? 100 : 5
3232

3333
depends_on = [
3434
module.lloyd_george_reference_dynamodb_table,

infrastructure/policies.tf

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,30 @@ resource "aws_iam_policy" "read_only_role_extra_permissions" {
4040
Workspace = "core"
4141
}
4242
}
43+
44+
resource "aws_iam_policy" "administrator_permission_restrictions" {
45+
count = local.is_sandbox ? 0 : 1
46+
name = "AdministratorRestriction"
47+
policy = jsonencode({
48+
Version = "2012-10-17",
49+
Statement = [
50+
{
51+
Effect = "Deny",
52+
Action = [
53+
"s3:DeleteObject",
54+
"s3:DeleteObjectVersion",
55+
"s3:PutLifecycleConfiguration",
56+
"s3:PutObject",
57+
"s3:RestoreObject"
58+
],
59+
Resource = [
60+
"arn:aws:s3:::*/*.tfstate"
61+
]
62+
}
63+
]
64+
})
65+
tags = {
66+
Name = "AdministratorRestriction"
67+
Workspace = "core"
68+
}
69+
}

infrastructure/variable.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ locals {
243243
current_region = data.aws_region.current.name
244244
current_account_id = data.aws_caller_identity.current.account_id
245245

246-
apim_api_url = "https://${var.apim_environment}api.service.nhs.uk/national-document-repository"
246+
apim_api_url = "https://${var.apim_environment}api.service.nhs.uk/national-document-repository/FHIR/R4"
247247

248248
truststore_bucket_id = local.is_sandbox ? "ndr-dev-${var.truststore_bucket_name}" : module.ndr-truststore[0].bucket_id
249249
truststore_uri = "s3://${local.truststore_bucket_id}/${var.ca_pem_filename}"

0 commit comments

Comments
 (0)