Skip to content

Commit 13c737d

Browse files
CCM-8418: Terraform fmt
1 parent 3ac48e3 commit 13c737d

File tree

7 files changed

+30
-16
lines changed

7 files changed

+30
-16
lines changed

infrastructure/terraform/components/app/cloudfront_distribution_main.tf

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
resource "aws_cloudfront_distribution" "main" {
22
provider = aws.us-east-1
33

4-
enabled = true
5-
is_ipv6_enabled = true
6-
comment = "NHS Notify templates files CDN (${local.csi})"
4+
enabled = true
5+
is_ipv6_enabled = true
6+
comment = "NHS Notify templates files CDN (${local.csi})"
77
# https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-priceclass
88
price_class = "PriceClass_100"
99

@@ -64,4 +64,3 @@ resource "aws_cloudfront_distribution" "main" {
6464
compress = true
6565
}
6666
}
67-

infrastructure/terraform/components/app/module_backend_api.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ module "backend_api" {
2121

2222
enable_backup = var.destination_vault_arn != null ? true : false
2323

24-
enable_letters = var.enable_letters
25-
enable_proofing = var.enable_proofing
26-
letter_suppliers = var.letter_suppliers
27-
log_destination_arn = "arn:aws:logs:${var.region}:${var.observability_account_id}:destination:nhs-notify-main-acct-firehose-logs"
28-
log_subscription_role_arn = local.acct.log_subscription_role_arn
24+
enable_letters = var.enable_letters
25+
enable_proofing = var.enable_proofing
26+
letter_suppliers = var.letter_suppliers
27+
log_destination_arn = "arn:aws:logs:${var.region}:${var.observability_account_id}:destination:nhs-notify-main-acct-firehose-logs"
28+
log_subscription_role_arn = local.acct.log_subscription_role_arn
2929

3030
}

infrastructure/terraform/modules/backend-api/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,8 @@ No requirements.
5151
| <a name="module_s3bucket_download"></a> [s3bucket\_download](#module\_s3bucket\_download) | git::https://github.com/NHSDigital/nhs-notify-shared-modules.git//infrastructure/modules/s3bucket | v2.0.2 |
5252
| <a name="module_s3bucket_internal"></a> [s3bucket\_internal](#module\_s3bucket\_internal) | git::https://github.com/NHSDigital/nhs-notify-shared-modules.git//infrastructure/modules/s3bucket | v1.0.8 |
5353
| <a name="module_s3bucket_quarantine"></a> [s3bucket\_quarantine](#module\_s3bucket\_quarantine) | git::https://github.com/NHSDigital/nhs-notify-shared-modules.git//infrastructure/modules/s3bucket | v1.0.8 |
54-
| <a name="module_sqs_process_proof_dlq"></a> [sqs\_process\_proof\_dlq](#module\_sqs\_process\_proof\_dlq) | git::https://github.com/NHSDigital/nhs-notify-shared-modules.git//infrastructure/modules/sqs | v2.0.1 |
5554
| <a name="module_sqs_sftp_upload"></a> [sqs\_sftp\_upload](#module\_sqs\_sftp\_upload) | git::https://github.com/NHSDigital/nhs-notify-shared-modules.git//infrastructure/modules/sqs | v2.0.1 |
5655
| <a name="module_sqs_validate_letter_template_files"></a> [sqs\_validate\_letter\_template\_files](#module\_sqs\_validate\_letter\_template\_files) | git::https://github.com/NHSDigital/nhs-notify-shared-modules.git//infrastructure/modules/sqs | v2.0.1 |
57-
| <a name="module_sqs_virus_scan_failed_delete_object_dlq"></a> [sqs\_virus\_scan\_failed\_delete\_object\_dlq](#module\_sqs\_virus\_scan\_failed\_delete\_object\_dlq) | git::https://github.com/NHSDigital/nhs-notify-shared-modules.git//infrastructure/modules/sqs | v2.0.1 |
58-
| <a name="module_sqs_virus_scan_passed_copy_object_dlq"></a> [sqs\_virus\_scan\_passed\_copy\_object\_dlq](#module\_sqs\_virus\_scan\_passed\_copy\_object\_dlq) | git::https://github.com/NHSDigital/nhs-notify-shared-modules.git//infrastructure/modules/sqs | v2.0.1 |
59-
| <a name="module_sqs_virus_scan_set_file_status_for_upload_dlq"></a> [sqs\_virus\_scan\_set\_file\_status\_for\_upload\_dlq](#module\_sqs\_virus\_scan\_set\_file\_status\_for\_upload\_dlq) | git::https://github.com/NHSDigital/nhs-notify-shared-modules.git//infrastructure/modules/sqs | v2.0.1 |
6056
| <a name="module_submit_template_lambda"></a> [submit\_template\_lambda](#module\_submit\_template\_lambda) | git::https://github.com/NHSDigital/nhs-notify-shared-modules.git//infrastructure/modules/lambda | v2.0.4 |
6157
| <a name="module_update_template_lambda"></a> [update\_template\_lambda](#module\_update\_template\_lambda) | git::https://github.com/NHSDigital/nhs-notify-shared-modules.git//infrastructure/modules/lambda | v2.0.4 |
6258
## Outputs

infrastructure/terraform/modules/backend-api/cloudwatch_log_group_api_gateway_access.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ resource "aws_cloudwatch_log_group" "api_gateway_access" {
44
}
55

66
resource "aws_cloudwatch_log_subscription_filter" "api_gateway_access" {
7-
count = var.log_destination_arn != "" ? 1 : 0
7+
count = var.log_destination_arn != "" ? 1 : 0
88
name = replace(aws_cloudwatch_log_group.api_gateway_access.name, "/", "-")
99
log_group_name = aws_cloudwatch_log_group.api_gateway_access.name
1010
filter_pattern = ""

infrastructure/terraform/modules/backend-api/cloudwatch_log_group_api_gateway_execution.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ resource "aws_cloudwatch_log_group" "api_gateway_execution" {
77
}
88

99
resource "aws_cloudwatch_log_subscription_filter" "api_gateway_execution" {
10-
count = var.log_destination_arn != "" ? 1 : 0
10+
count = var.log_destination_arn != "" ? 1 : 0
1111
name = replace(aws_cloudwatch_log_group.api_gateway_execution.name, "/", "-")
1212
log_group_name = aws_cloudwatch_log_group.api_gateway_execution.name
1313
filter_pattern = ""
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!-- BEGIN_TF_DOCS -->
2+
<!-- markdownlint-disable -->
3+
<!-- vale off -->
4+
5+
## Requirements
6+
7+
No requirements.
8+
## Inputs
9+
10+
No inputs.
11+
## Modules
12+
13+
No modules.
14+
## Outputs
15+
16+
No outputs.
17+
<!-- vale on -->
18+
<!-- markdownlint-enable -->
19+
<!-- END_TF_DOCS -->

infrastructure/terraform/modules/lambda-function/cloudwatch_log_subscription_filter_firehose.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
resource "aws_cloudwatch_log_subscription_filter" "firehose" {
2-
count = var.log_destination_arn != "" ? 1 : 0
2+
count = var.log_destination_arn != "" ? 1 : 0
33
name = replace(aws_cloudwatch_log_group.lambda.name, "/", "-")
44
log_group_name = aws_cloudwatch_log_group.lambda.name
55
filter_pattern = var.filter_pattern

0 commit comments

Comments
 (0)