Skip to content

Commit 6e7b638

Browse files
committed
[NDR-50] add move blocks
1 parent 91e0d5e commit 6e7b638

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

infrastructure/iam.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,21 @@ data "aws_iam_policy_document" "assume_role_policy_for_get_doc_ref_lambda" {
141141
}
142142
}
143143
}
144+
moved {
145+
from = aws_iam_role.nrl_get_doc_presign_url_role
146+
to = aws_iam_role.get_fhir_doc_presign_url_role
147+
}
144148

145149
resource "aws_iam_role" "get_fhir_doc_presign_url_role" {
146150
name = "${terraform.workspace}_get_fhir_doc_presign_url_role"
147151
assume_role_policy = data.aws_iam_policy_document.assume_role_policy_for_get_doc_ref_lambda.json
148152
}
149153

154+
moved {
155+
from = aws_iam_role_policy_attachment.nrl_get_doc_presign_url
156+
to = aws_iam_role_policy_attachment.get_doc_presign_url
157+
}
158+
150159
resource "aws_iam_role_policy_attachment" "get_doc_presign_url" {
151160
role = aws_iam_role.get_fhir_doc_presign_url_role.name
152161
policy_arn = aws_iam_policy.s3_document_data_policy_for_get_doc_ref_lambda.arn

infrastructure/lambda-get-document-fhir.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ resource "aws_api_gateway_method" "get_document_reference" {
1717
}
1818
}
1919

20+
moved {
21+
from = module.get-doc-nrl-lambda
22+
to = module.get-doc-fhir-lambda
23+
}
24+
2025
module "get-doc-fhir-lambda" {
2126
count = local.is_production ? 0 : 1
2227
source = "./modules/lambda"

0 commit comments

Comments
 (0)