File tree Expand file tree Collapse file tree 4 files changed +30
-3
lines changed
Expand file tree Collapse file tree 4 files changed +30
-3
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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+ }
Original file line number Diff line number Diff 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 } "
You can’t perform that action at this time.
0 commit comments