Skip to content

Commit 27e5938

Browse files
committed
[NDR-50] add index to move block
1 parent a463a72 commit 27e5938

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

infrastructure/iam.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ data "aws_iam_policy_document" "assume_role_policy_for_get_doc_ref_lambda" {
144144
}
145145
moved {
146146
from = aws_iam_role.nrl_get_doc_presign_url_role
147-
to = aws_iam_role.get_fhir_doc_presign_url_role
147+
to = aws_iam_role.get_fhir_doc_presign_url_role[0]
148148
}
149149

150150
resource "aws_iam_role" "get_fhir_doc_presign_url_role" {
@@ -155,7 +155,7 @@ resource "aws_iam_role" "get_fhir_doc_presign_url_role" {
155155

156156
moved {
157157
from = aws_iam_role_policy_attachment.nrl_get_doc_presign_url
158-
to = aws_iam_role_policy_attachment.get_doc_presign_url
158+
to = aws_iam_role_policy_attachment.get_doc_presign_url[0]
159159
}
160160

161161
resource "aws_iam_role_policy_attachment" "get_doc_presign_url" {

infrastructure/lambda-get-document-fhir.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ resource "aws_api_gateway_method" "get_document_reference" {
1919

2020
moved {
2121
from = module.get-doc-nrl-lambda
22-
to = module.get-doc-fhir-lambda
22+
to = module.get-doc-fhir-lambda[0]
2323
}
2424

2525
module "get-doc-fhir-lambda" {

0 commit comments

Comments
 (0)