Skip to content

Commit d9fd6bc

Browse files
[PRMP-579] remove indexing on module references
1 parent 3f79875 commit d9fd6bc

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

infrastructure/buckets.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module "ndr-lloyd-george-store" {
5151
access_logs_enabled = local.is_production
5252
access_logs_bucket_id = local.access_logs_bucket_id
5353
cloudfront_enabled = true
54-
cloudfront_arn = module.cloudfront-distribution-lg[0].cloudfront_arn
54+
cloudfront_arn = module.cloudfront-distribution-lg.cloudfront_arn
5555
bucket_name = var.lloyd_george_bucket_name
5656
enable_bucket_versioning = true
5757
environment = var.environment
@@ -155,7 +155,7 @@ module "ndr-document-pending-review-store" {
155155
enable_bucket_versioning = true
156156
force_destroy = local.is_force_destroy
157157
cloudfront_enabled = true
158-
cloudfront_arn = module.cloudfront-distribution-lg[0].cloudfront_arn
158+
cloudfront_arn = module.cloudfront-distribution-lg.cloudfront_arn
159159
enable_cors_configuration = true
160160
cors_rules = [
161161
{

infrastructure/lambda-get-document-fhir.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ module "get-doc-fhir-lambda" {
5959
LLOYD_GEORGE_DYNAMODB_NAME = module.lloyd_george_reference_dynamodb_table.table_name
6060
PDM_DYNAMODB_NAME = module.pdm_dynamodb_table.table_name
6161
OIDC_CALLBACK_URL = contains(["prod"], terraform.workspace) ? "https://${var.domain}/auth-callback" : "https://${terraform.workspace}.${var.domain}/auth-callback"
62-
CLOUDFRONT_URL = module.cloudfront-distribution-lg[0].cloudfront_url
62+
CLOUDFRONT_URL = module.cloudfront-distribution-lg.cloudfront_url
6363
PDS_FHIR_IS_STUBBED = local.is_sandbox
6464
}
6565
depends_on = [

infrastructure/lambda-lloyd-george-record-stitch.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ module "lloyd-george-stitch-lambda" {
7878
LLOYD_GEORGE_BUCKET_NAME = "${terraform.workspace}-${var.lloyd_george_bucket_name}"
7979
LLOYD_GEORGE_DYNAMODB_NAME = "${terraform.workspace}_${var.lloyd_george_dynamodb_table_name}"
8080
STITCH_METADATA_DYNAMODB_NAME = "${terraform.workspace}_${var.stitch_metadata_dynamodb_table_name}"
81-
CLOUDFRONT_URL = module.cloudfront-distribution-lg[0].cloudfront_url
81+
CLOUDFRONT_URL = module.cloudfront-distribution-lg.cloudfront_url
8282
WORKSPACE = terraform.workspace
8383
PRESIGNED_ASSUME_ROLE = aws_iam_role.stitch_presign_url_role.arn
8484
EDGE_REFERENCE_TABLE = module.cloudfront_edge_dynamodb_table.table_name
@@ -88,7 +88,7 @@ module "lloyd-george-stitch-lambda" {
8888
module.ndr-lloyd-george-store,
8989
module.lloyd-george-stitch-gateway,
9090
module.ndr-app-config,
91-
module.cloudfront-distribution-lg[0],
91+
module.cloudfront-distribution-lg,
9292
module.stitch_metadata_reference_dynamodb_table,
9393
module.lloyd_george_reference_dynamodb_table
9494
]

0 commit comments

Comments
 (0)