Skip to content

Commit 1c2bff7

Browse files
committed
[NDR-28] addressing PR comment
1 parent 756d5a8 commit 1c2bff7

File tree

9 files changed

+20
-14
lines changed

9 files changed

+20
-14
lines changed

bootstrap/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
| Name | Version |
1111
|------|---------|
12-
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.70.0 |
12+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.0 |
1313

1414
## Modules
1515

infrastructure/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
| <a name="module_cloudfront-distribution-lg"></a> [cloudfront-distribution-lg](#module\_cloudfront-distribution-lg) | ./modules/cloudfront | n/a |
4444
| <a name="module_cloudfront_edge_dynamodb_table"></a> [cloudfront\_edge\_dynamodb\_table](#module\_cloudfront\_edge\_dynamodb\_table) | ./modules/dynamo_db | n/a |
4545
| <a name="module_cloudfront_firewall_waf_v2"></a> [cloudfront\_firewall\_waf\_v2](#module\_cloudfront\_firewall\_waf\_v2) | ./modules/firewall_waf_v2 | n/a |
46-
| <a name="module_create-doc-ref-gateway"></a> [create-doc-ref-gateway](#module\_create-doc-ref-gateway) | ./modules/gateway | n/a |
4746
| <a name="module_create-doc-ref-lambda"></a> [create-doc-ref-lambda](#module\_create-doc-ref-lambda) | ./modules/lambda | n/a |
4847
| <a name="module_create-token-gateway"></a> [create-token-gateway](#module\_create-token-gateway) | ./modules/gateway | n/a |
4948
| <a name="module_create-token-lambda"></a> [create-token-lambda](#module\_create-token-lambda) | ./modules/lambda | n/a |
@@ -63,10 +62,10 @@
6362
| <a name="module_delete_doc_alarm_topic"></a> [delete\_doc\_alarm\_topic](#module\_delete\_doc\_alarm\_topic) | ./modules/sns | n/a |
6463
| <a name="module_document-manifest-job-gateway"></a> [document-manifest-job-gateway](#module\_document-manifest-job-gateway) | ./modules/gateway | n/a |
6564
| <a name="module_document-manifest-job-lambda"></a> [document-manifest-job-lambda](#module\_document-manifest-job-lambda) | ./modules/lambda | n/a |
66-
| <a name="module_document-reference-gateway"></a> [document-reference-gateway](#module\_document-reference-gateway) | ./modules/gateway | n/a |
6765
| <a name="module_document_manifest_alarm"></a> [document\_manifest\_alarm](#module\_document\_manifest\_alarm) | ./modules/lambda_alarms | n/a |
6866
| <a name="module_document_manifest_alarm_topic"></a> [document\_manifest\_alarm\_topic](#module\_document\_manifest\_alarm\_topic) | ./modules/sns | n/a |
6967
| <a name="module_document_reference_dynamodb_table"></a> [document\_reference\_dynamodb\_table](#module\_document\_reference\_dynamodb\_table) | ./modules/dynamo_db | n/a |
68+
| <a name="module_document_reference_gateway"></a> [document\_reference\_gateway](#module\_document\_reference\_gateway) | ./modules/gateway | n/a |
7069
| <a name="module_edge-presign-lambda"></a> [edge-presign-lambda](#module\_edge-presign-lambda) | ./modules/lambda_edge | n/a |
7170
| <a name="module_edge_presign_alarm"></a> [edge\_presign\_alarm](#module\_edge\_presign\_alarm) | ./modules/lambda_alarms | n/a |
7271
| <a name="module_edge_presign_alarm_topic"></a> [edge\_presign\_alarm\_topic](#module\_edge\_presign\_alarm\_topic) | ./modules/sns | n/a |

infrastructure/api.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ resource "aws_api_gateway_deployment" "ndr_api_deploy" {
4747
module.access-audit-lambda,
4848
module.back-channel-logout-gateway,
4949
module.back_channel_logout_lambda,
50-
module.create-doc-ref-gateway,
50+
module.document_reference_gateway,
5151
module.create-doc-ref-lambda,
5252
module.create-token-gateway,
5353
module.create-token-lambda,

infrastructure/lambda-create-doc-ref.tf

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
module "document-reference-gateway" {
1+
moved {
2+
from = module.create-doc-ref-gateway
3+
to = module.document_reference_gateway
4+
}
5+
6+
module "document_reference_gateway" {
27
source = "./modules/gateway"
38
api_gateway_id = aws_api_gateway_rest_api.ndr_doc_store_api.id
49
parent_id = aws_api_gateway_rest_api.ndr_doc_store_api.root_resource_id
@@ -73,7 +78,7 @@ module "create-doc-ref-lambda" {
7378
module.ndr-app-config.app_config_policy,
7479
]
7580
rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id
76-
resource_id = module.document-reference-gateway.gateway_resource_id
81+
resource_id = module.document_reference_gateway.gateway_resource_id
7782
http_methods = ["POST"]
7883
memory_size = 512
7984

@@ -96,7 +101,7 @@ module "create-doc-ref-lambda" {
96101
module.document_reference_dynamodb_table,
97102
module.lloyd_george_reference_dynamodb_table,
98103
module.ndr-bulk-staging-store,
99-
module.document-reference-gateway,
104+
module.document_reference_gateway,
100105
module.ndr-app-config,
101106
module.lloyd_george_reference_dynamodb_table,
102107
module.document_reference_dynamodb_table,

infrastructure/lambda-get-document-nrl.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
resource "aws_api_gateway_resource" "get_document_reference" {
22
rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id
3-
parent_id = module.document-reference-gateway.gateway_resource_id
3+
parent_id = module.document_reference_gateway.gateway_resource_id
44
path_part = "{id}"
55
}
66

infrastructure/lambda-search-document-references-fhir.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
resource "aws_api_gateway_method" "get_document_references_fhir" {
22
count = local.is_production ? 0 : 1
33
rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id
4-
resource_id = module.document-reference-gateway.gateway_resource_id
4+
resource_id = module.document_reference_gateway.gateway_resource_id
55
http_method = "GET"
66
authorization = "NONE"
77
api_key_required = true
@@ -23,7 +23,7 @@ module "search-document-references-fhir-lambda" {
2323
module.ndr-app-config.app_config_policy
2424
]
2525
rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id
26-
resource_id = module.document-reference-gateway.gateway_resource_id
26+
resource_id = module.document_reference_gateway.gateway_resource_id
2727
http_methods = ["GET"]
2828
api_execution_arn = aws_api_gateway_rest_api.ndr_doc_store_api.execution_arn
2929
lambda_environment_variables = {

infrastructure/modules/app_config/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ No requirements.
77
| Name | Version |
88
|------|---------|
99
| <a name="provider_aws"></a> [aws](#provider\_aws) | n/a |
10+
| <a name="provider_terraform"></a> [terraform](#provider\_terraform) | n/a |
1011

1112
## Modules
1213

@@ -23,6 +24,7 @@ No modules.
2324
| [aws_appconfig_environment.ndr-app-config-environment](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/appconfig_environment) | resource |
2425
| [aws_appconfig_hosted_configuration_version.ndr-app-config-profile-version](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/appconfig_hosted_configuration_version) | resource |
2526
| [aws_iam_policy.app_config_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_policy) | resource |
27+
| [terraform_data.current_config_file_content](https://registry.terraform.io/providers/hashicorp/terraform/latest/docs/resources/data) | resource |
2628
| [aws_iam_policy_document.app_config_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
2729

2830
## Inputs

infrastructure/modules/app_config/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ resource "aws_appconfig_hosted_configuration_version" "ndr-app-config-profile-ve
6363
# AWS is adding a created and modified timestamp to the content, which causes a change in the resource.
6464
# This is a workaround until the issue is resolved in the AWS provider.
6565
# https://github.com/hashicorp/terraform-provider-aws/issues/20273
66-
ignore_changes = [content]
66+
ignore_changes = [content]
6767

68-
replace_triggered_by = [
68+
replace_triggered_by = [
6969
aws_appconfig_application.ndr-app-config-application.id,
7070
aws_appconfig_configuration_profile.ndr-app-config-profile.configuration_profile_id,
7171
terraform_data.current_config_file_content,
72-
]
72+
]
7373
}
7474
}
7575

virusscanner/terraform/README.md

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

99
| Name | Version |
1010
|------|---------|
11-
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.95.0 |
11+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.0 |
1212

1313
## Modules
1414

0 commit comments

Comments
 (0)