Skip to content

Commit ca46dc5

Browse files
Merge branch 'main' into feature/CCM-12963-E2ETests
2 parents 1b98373 + 256710a commit ca46dc5

33 files changed

Lines changed: 9278 additions & 5647 deletions

.gitleaksignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ e12407e09151898bfd8d049d57eee9db9977d56b:.github/copilot-instructions.md:generic
2323
debc75a97cfe551a69fd1e8694be483213322a9d:pact-contracts/pacts/letter-rendering/supplier-api-letter-request-prepared.json:generic-api-key:10
2424
777eb4047ad06b9e939a292ee18664a0ffee4f29:tests/resources/prepared-letter.json:generic-api-key:4
2525
4fa1923947bbff2387218d698d766cbb7c121a0f:pact-contracts/pacts/letter-rendering/supplier-api-letter-request-prepared.json:generic-api-key:10
26+
d005112adcfd286c3bef076214836dbb2fe8d0b5:.npmrc:npm-access-token:9
27+
d005112adcfd286c3bef076214836dbb2fe8d0b5:.npmrc:github-pat:7

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ config:: _install-dependencies version # Configure development environment (main
103103
test-component:
104104
(cd tests && npm install && npm run test:component)
105105

106+
test-performance:
107+
(cd tests && npm install && npm run test:performance)
108+
106109
version:
107110
rm -f .version
108111
make version-create-effective-file dir=.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.0-${yyyy}${mm}${dd}.${HH}${MM}${SS}+${hash}
1+
1.1.2-${yyyy}${mm}${dd}.${HH}${MM}${SS}+${hash}

infrastructure/terraform/components/api/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ No requirements.
1717
| <a name="input_core_environment"></a> [core\_environment](#input\_core\_environment) | Environment of Core | `string` | `"prod"` | no |
1818
| <a name="input_default_tags"></a> [default\_tags](#input\_default\_tags) | A map of default tags to apply to all taggable resources within the component | `map(string)` | `{}` | no |
1919
| <a name="input_disable_gateway_execute_endpoint"></a> [disable\_gateway\_execute\_endpoint](#input\_disable\_gateway\_execute\_endpoint) | Disable the execution endpoint for the API Gateway | `bool` | `true` | no |
20-
| <a name="input_enable_backups"></a> [enable\_backups](#input\_enable\_backups) | Enable backups | `bool` | `false` | no |
20+
| <a name="input_enable_api_data_trace"></a> [enable\_api\_data\_trace](#input\_enable\_api\_data\_trace) | Enable API Gateway data trace logging | `bool` | `false` | no |
21+
| <a name="input_enable_event_cache"></a> [enable\_event\_cache](#input\_enable\_event\_cache) | Enable caching of events to an S3 bucket | `bool` | `false` | no |
22+
| <a name="input_enable_sns_delivery_logging"></a> [enable\_sns\_delivery\_logging](#input\_enable\_sns\_delivery\_logging) | Enable SNS Delivery Failure Notifications | `bool` | `false` | no |
2123
| <a name="input_environment"></a> [environment](#input\_environment) | The name of the tfscaffold environment | `string` | n/a | yes |
2224
| <a name="input_eventpub_control_plane_bus_arn"></a> [eventpub\_control\_plane\_bus\_arn](#input\_eventpub\_control\_plane\_bus\_arn) | ARN of the EventBridge control plane bus for eventpub | `string` | `""` | no |
2325
| <a name="input_eventpub_data_plane_bus_arn"></a> [eventpub\_data\_plane\_bus\_arn](#input\_eventpub\_data\_plane\_bus\_arn) | ARN of the EventBridge data plane bus for eventpub | `string` | `""` | no |
@@ -35,6 +37,7 @@ No requirements.
3537
| <a name="input_project"></a> [project](#input\_project) | The name of the tfscaffold project | `string` | n/a | yes |
3638
| <a name="input_region"></a> [region](#input\_region) | The AWS Region | `string` | n/a | yes |
3739
| <a name="input_shared_infra_account_id"></a> [shared\_infra\_account\_id](#input\_shared\_infra\_account\_id) | The AWS Account ID of the shared infrastructure account | `string` | `"000000000000"` | no |
40+
| <a name="input_sns_success_logging_sample_percent"></a> [sns\_success\_logging\_sample\_percent](#input\_sns\_success\_logging\_sample\_percent) | Enable SNS Delivery Successful Sample Percentage | `number` | `0` | no |
3841
## Modules
3942

4043
| Name | Source | Version |

infrastructure/terraform/components/api/api_gateway_method_settings.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ resource "aws_api_gateway_method_settings" "main" {
66
settings {
77
metrics_enabled = true
88
logging_level = "INFO"
9-
data_trace_enabled = true
9+
data_trace_enabled = var.enable_api_data_trace
1010
}
1111
}

infrastructure/terraform/components/api/ddb_table_letters.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,10 @@ resource "aws_dynamodb_table" "letters" {
4141
enabled = true
4242
}
4343

44-
tags = var.default_tags
44+
tags = merge(
45+
local.default_tags,
46+
{
47+
NHSE-Enable-Dynamo-Backup-Acct = "True"
48+
}
49+
)
4550
}

infrastructure/terraform/components/api/ddb_table_mi.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,10 @@ resource "aws_dynamodb_table" "mi" {
2424
enabled = true
2525
}
2626

27-
tags = var.default_tags
27+
tags = merge(
28+
local.default_tags,
29+
{
30+
NHSE-Enable-Dynamo-Backup-Acct = "True"
31+
}
32+
)
2833
}

infrastructure/terraform/components/api/ddb_table_suppliers.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,10 @@ resource "aws_dynamodb_table" "suppliers" {
3030
enabled = true
3131
}
3232

33-
tags = var.default_tags
33+
tags = merge(
34+
local.default_tags,
35+
{
36+
NHSE-Enable-Dynamo-Backup-Acct = "True"
37+
}
38+
)
3439
}

infrastructure/terraform/components/api/modules_eventpub.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ module "eventpub" {
1919
force_destroy = var.force_destroy
2020

2121
event_cache_buffer_interval = 500
22-
enable_sns_delivery_logging = true
23-
sns_success_logging_sample_percent = 0
22+
enable_sns_delivery_logging = var.enable_sns_delivery_logging
23+
sns_success_logging_sample_percent = var.sns_success_logging_sample_percent
2424

2525
event_cache_expiry_days = 30
26-
enable_event_cache = true
26+
enable_event_cache = var.enable_event_cache
2727

2828
data_plane_bus_arn = var.eventpub_data_plane_bus_arn
2929
control_plane_bus_arn = var.eventpub_control_plane_bus_arn

infrastructure/terraform/components/api/modules_eventsub.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ module "eventsub" {
1818
force_destroy = var.force_destroy
1919

2020
event_cache_buffer_interval = 500
21-
enable_sns_delivery_logging = true
22-
sns_success_logging_sample_percent = 0
21+
enable_sns_delivery_logging = var.enable_sns_delivery_logging
22+
sns_success_logging_sample_percent = var.sns_success_logging_sample_percent
2323

2424
event_cache_expiry_days = 30
25-
enable_event_cache = true
25+
enable_event_cache = var.enable_event_cache
26+
2627
shared_infra_account_id = var.shared_infra_account_id
2728
}

0 commit comments

Comments
 (0)