Skip to content

Commit fe3786e

Browse files
committed
[NDR-50] reverting count changes to get doc endpoint
1 parent d3c1332 commit fe3786e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

infrastructure/iam.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ resource "aws_iam_policy" "s3_document_data_policy_for_get_doc_ref_lambda" {
132132
}
133133

134134
data "aws_iam_policy_document" "assume_role_policy_for_get_doc_ref_lambda" {
135-
count = local.is_production ? 0 : 1
135+
count = 1
136136
statement {
137137
actions = ["sts:AssumeRole"]
138138

@@ -144,14 +144,14 @@ data "aws_iam_policy_document" "assume_role_policy_for_get_doc_ref_lambda" {
144144
}
145145

146146
resource "aws_iam_role" "get_fhir_doc_presign_url_role" {
147-
count = local.is_production ? 0 : 1
147+
count = 1
148148
name = "${terraform.workspace}_get_fhir_doc_presign_url_role"
149149
assume_role_policy = data.aws_iam_policy_document.assume_role_policy_for_get_doc_ref_lambda[0].json
150150
}
151151

152152

153153
resource "aws_iam_role_policy_attachment" "get_doc_presign_url" {
154-
count = local.is_production ? 0 : 1
154+
count = 1
155155
role = aws_iam_role.get_fhir_doc_presign_url_role[0].name
156156
policy_arn = aws_iam_policy.s3_document_data_policy_for_get_doc_ref_lambda.arn
157157
}

infrastructure/lambda-get-document-fhir.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
resource "aws_api_gateway_resource" "get_document_reference" {
2-
count = local.is_production ? 0 : 1
2+
count = 1
33
rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id
44
parent_id = module.create-doc-ref-gateway.gateway_resource_id
55
path_part = "{id}"
66
}
77

88
resource "aws_api_gateway_method" "get_document_reference" {
9-
count = local.is_production ? 0 : 1
9+
count = 1
1010
rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id
1111
resource_id = aws_api_gateway_resource.get_document_reference[0].id
1212
http_method = "GET"
@@ -19,7 +19,7 @@ resource "aws_api_gateway_method" "get_document_reference" {
1919

2020

2121
module "get-doc-fhir-lambda" {
22-
count = local.is_production ? 0 : 1
22+
count = 1
2323
source = "./modules/lambda"
2424
name = "GetDocumentReference"
2525
handler = "handlers.get_fhir_document_reference_handler.lambda_handler"

0 commit comments

Comments
 (0)