Skip to content

Commit 54aad08

Browse files
committed
[PRM-52] Add permission to access edge table and list bucket
1 parent d417c41 commit 54aad08

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

infrastructure/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@
215215
| [aws_cloudwatch_event_target.nhs_oauth_token_generator_schedule](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_event_target) | resource |
216216
| [aws_cloudwatch_event_target.statistical_report_schedule_event](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_event_target) | resource |
217217
| [aws_cloudwatch_log_metric_filter.edge_presign_error](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_metric_filter) | resource |
218+
| [aws_cloudwatch_log_resource_policy.rum_log](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_resource_policy) | resource |
218219
| [aws_cloudwatch_metric_alarm.api_gateway_alarm_4XX](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_metric_alarm) | resource |
219220
| [aws_cloudwatch_metric_alarm.api_gateway_alarm_5XX](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_metric_alarm) | resource |
220221
| [aws_cloudwatch_metric_alarm.edge_presign_lambda_error](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_metric_alarm) | resource |

infrastructure/iam.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ resource "aws_iam_policy" "s3_document_data_policy_for_stitch_lambda" {
4646
"Effect" : "Allow",
4747
"Action" : [
4848
"s3:GetObject",
49+
"S3:ListBucket",
4950
],
5051
"Resource" : ["${module.ndr-lloyd-george-store.bucket_arn}/combined_files/*"]
5152
}

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ module "lloyd-george-stitch-lambda" {
7373
module.stitch_metadata_reference_dynamodb_table.dynamodb_read_policy_document,
7474
module.stitch_metadata_reference_dynamodb_table.dynamodb_write_policy_document,
7575
module.lloyd_george_reference_dynamodb_table.dynamodb_read_policy_document,
76-
module.lloyd_george_reference_dynamodb_table.dynamodb_write_policy_document
76+
module.lloyd_george_reference_dynamodb_table.dynamodb_write_policy_document,
77+
module.cloudfront_edge_dynamodb_table.dynamodb_write_policy_document
7778
]
7879
rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id
7980
resource_id = module.lloyd-george-stitch-gateway.gateway_resource_id
@@ -91,6 +92,7 @@ module "lloyd-george-stitch-lambda" {
9192
SPLUNK_SQS_QUEUE_URL = try(module.sqs-splunk-queue[0].sqs_url, null)
9293
WORKSPACE = terraform.workspace
9394
PRESIGNED_ASSUME_ROLE = aws_iam_role.stitch_presign_url_role.arn
95+
EDGE_REFERENCE_TABLE = module.cloudfront_edge_dynamodb_table.table_name
9496
}
9597
depends_on = [
9698
aws_api_gateway_rest_api.ndr_doc_store_api,

0 commit comments

Comments
 (0)